From: Ian Jackson Date: Wed, 30 Dec 2020 01:06:31 +0000 (+0000) Subject: use window global X-Git-Tag: otter-0.2.0~82 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6273fa99d0b77307f7dbfdb20db462f2d0d3fe20;p=otter.git use window global Signed-off-by: Ian Jackson --- diff --git a/wdriver.rs b/wdriver.rs index 9de64abf..db678d15 100644 --- a/wdriver.rs +++ b/wdriver.rs @@ -859,8 +859,8 @@ impl<'g> WindowGuard<'g> { ]).subst(r#" var done = arguments[0]; if (gen >= @wanted@) { done(gen); return; } - gen_update_hook = function() { - gen_update_hook = function() { }; + window.gen_update_hook = function() { + window.gen_update_hook = function() { }; done(gen); }; "#)?