We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app.appId
一些 API 会在结束的时候调用 PushEvent 方法,这个方法用到了 appId 这个参数用于定位广播的对象。
PushEvent
appId 来源于 Constants.SIYUAN_APPID,它无法直接被开发者访问到。
Constants.SIYUAN_APPID
我现在的办法是,访问 websocket 的 url window.siyuan.ws.ws.url 然后获取到对应的 appId。可否能直接一点,把这个作为一个字段挂载在 window 对象下?
window.siyuan.ws.ws.url
将 Constants.SIYUAN_APPID 挂载到 window 下。
No response
The text was updated successfully, but these errors were encountered:
🎨 fix #9538
6ee3761
this.app.appId
Sorry, something went wrong.
siyuan-note/petal@5a0382a
🎨 siyuan-note/siyuan#9538
8f4c1b7
能否直接挂载Constants到plugin下?
Constants
🎨 fix siyuan-note/siyuan#9538
2cf59be
Vanessa219
No branches or pull requests
In what scenarios do you need this feature?
一些 API 会在结束的时候调用
PushEvent
方法,这个方法用到了 appId 这个参数用于定位广播的对象。appId 来源于
Constants.SIYUAN_APPID
,它无法直接被开发者访问到。我现在的办法是,访问 websocket 的 url
window.siyuan.ws.ws.url
然后获取到对应的 appId。可否能直接一点,把这个作为一个字段挂载在 window 对象下?Describe the optimal solution
将
Constants.SIYUAN_APPID
挂载到 window 下。Describe the candidate solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: