package ezjs_extension
Binding for Chrome and Firefox extension API
Install
Dune Dependency
Authors
Maintainers
Sources
0.1.tar.gz
md5=0d1dc7175a620eb50c07f2bbe0531533
sha512=5742b4e64398533c95291fe7c9b5ed3e264214dee7522fec1a0074766afd40e633aa1ceea16cbc6923ab80d737a15c13b50b96d4ddf8fad8ec74c30816877c9a
doc/src/ezjs_extension.chrome-common/storage_chrome_common.ml.html
Source file storage_chrome_common.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
open Ezjs_min class type storageChange = object method oldValue : 'a prop method newValue : 'a prop end class type storageArea = object method get : js_string t opt -> ('a -> unit) callback -> unit meth method get_arr : js_string t js_array t opt -> ('a -> unit) callback -> unit meth method get_o : 'a opt -> ('a -> unit) callback -> unit meth method getBytesInUse : js_string t opt -> (int -> unit) callback -> unit meth method getBytesInUse_arr : js_string t js_array t opt -> (int -> unit) callback -> unit meth method set : 'a -> (unit -> unit) callback optdef -> unit meth method remove : js_string t -> (unit -> unit) callback optdef -> unit meth method clear : (unit -> unit) callback optdef -> unit meth end class type storage = object method sync : storageArea t prop method local : storageArea t prop method managed : storageArea t prop end let storage : storage t = Unsafe.variable "chrome.storage" let local = storage##.local let sync = storage##.sync let managed = storage##.managed
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>