mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-16 13:23:41 +00:00
feat(extension): add host environment and WebView page events (#1527)
This commit is contained in:
31 files changed
+1480
-184
No files matched your search
@@ -289,3 +289,8 @@ func callExportedFunction(fn func(goja.FunctionCall) goja.Value, args ...goja.Va
|
||||
Arguments: args,
|
||||
}), nil
|
||||
}
|
||||
|
||||
// Post queues a notification without waiting for its callback or returned promise.
|
||||
func (e *Engine) Post(fn func(*goja.Runtime)) bool {
|
||||
return e.loop.RunOnLoop(fn)
|
||||
}
|
||||
Reference in new issue
Block a user