skpm/sketch-module-web-view
在 GitHub 查看Get a callback with the result from `sendToWebView`
Open
#131 创建于 2019年10月27日
enhancementhelp wanted
仓库指标
- Star
- (290 star)
- PR 合并指标
- (PR 指标待抓取)
描述
Is there any reliable way to call a javascript function on the web view and get a callback with the result after? I don't have access to webContents in my case, because I am communicating with the web view from another command.
I have tried a few things using getWebview() or accessing the thread dictionary directly, but mostly been causing Sketch to crash and still failing to get a response using .then().
Is there any recommended way using sendToWebview()?