package ezjs_extension

  1. Overview
  2. Docs
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/windows_browser.ml.html

Source file windows_browser.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
open Ezjs_min
open Promise
include Browser_common.Windows

let get ?info id f = jthen (windows##get id (Optdef.option info)) f
let getCurrent ?info f = jthen (windows##getCurrent (Optdef.option info)) f
let getLastFocused ?info f = jthen (windows##getLastFocused (Optdef.option info)) f
let getAll ?info f =
  jthen (windows##getAll (Optdef.option info)) (fun a -> f (to_list a))
let create ?info ?callback () =
  jthen_opt (windows##create (Optdef.option info)) callback
let update ?callback id info =
  jthen_opt (windows##update id info) callback
let remove ?callback id = jthen_opt (windows##remove id) callback
OCaml

Innovation. Community. Security.