Permalink
Browse files

Add Page.close option "runBeforeUnload"

  • Loading branch information...
zploskey committed May 15, 2018
1 parent 2bb0cf8 commit 936da1b19fc024382ff678d8a76c58cbab86ab9d
Showing with 12 additions and 5 deletions.
  1. +4 −4 lib/js/__tests__/puppeteer_test.js
  2. +8 −1 src/Page.re

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -150,7 +150,14 @@ external click :
(string, ~options: Click.clickOptions=?, unit) => Js.Promise.t(unit) =
"";

[@bs.send.pipe: t] external close : Js.Promise.t(unit) = "";
type closeOptions = {. "runBeforeUnload": Js.nullable(bool)};

[@bs.obj]
external makeCloseOptions : (~runBeforeUnload: bool=?, unit) => closeOptions =
"";

[@bs.send.pipe: t]
external close : (~options: closeOptions=?) => Js.Promise.t(unit) = "";

[@bs.send] external content : t => Js.Promise.t(string) = "";

0 comments on commit 936da1b

Please sign in to comment.