package ezjs_extension
Binding for Chrome and Firefox extension API
Install
Dune Dependency
Authors
Maintainers
Sources
0.2.tar.gz
md5=656df77dabbefd03a5646cf72953b29c
sha512=f1e0f92683eb1605bb32ba2791ef046fd2312357f19fcc44ae06544708b789f2398666cf0adb1848e89c8f0a6f17615ac8437477cd7761f9cff5cff9969bb54d
doc/src/ezjs_extension.browser/runtime_browser.ml.html
Source file runtime_browser.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
open Ezjs_min open Promise include Browser_common.Runtime let getBackgroundPage f = jthen runtime##getBackgroundPage f let openOptionsPage ?callback () = jthen runtime##openOptionsPage (match callback with None -> (fun _ -> ()) | Some cb -> cb) let setUninstallURL ?callback s = jthen (runtime##setUninstallURL s) (match callback with None -> (fun _ -> ()) | Some cb -> cb) let requestUpdateCheck f = jthen runtime##requestUpdateCheck f let sendMessage ?id ?options ?callback message = jthen (runtime##sendMessage (Opt.option id) message (Opt.option options)) (match callback with None -> (fun _ -> ()) | Some cb -> cb) let sendNativeMessage ?callback application message = jthen (runtime##sendNativeMessage (string application) message) (match callback with None -> (fun _ -> ()) | Some cb -> cb) let getPlatformInfo f = jthen runtime##getPlatformInfo (fun o -> f (Extension_utils.Runtime.to_platform_info o)) let getPackageDirectoryEntry f = jthen runtime##getPackageDirectoryEntry f
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>