skpm/sketch-module-web-view

Get a callback with the result from `sendToWebView`

オープン

#131 opened on 2019/10/27

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (63 件のフォーク)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (288 個のスター)
PR merge metrics
 (30d に merged 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()?

コントリビューターガイド