diff options
Diffstat (limited to 'src/Dom/Document.ml')
-rw-r--r-- | src/Dom/Document.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Dom/Document.ml b/src/Dom/Document.ml new file mode 100644 index 0000000..afd1a84 --- /dev/null +++ b/src/Dom/Document.ml @@ -0,0 +1,4 @@ +external querySelector : string -> Dom.element option = "querySelector" + [@@bs.val] [@@bs.scope "document"] + +let querySelectorUnsafe id = querySelector id |> Js.Option.getExn |