From 4ca48db78b76e3b46167efd4f1558a48540cfca9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 10 Feb 2017 20:41:11 -0700 Subject: [PATCH] move delete --- oauth3.browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth3.browser.js b/oauth3.browser.js index 77f8a2b..4875588 100644 --- a/oauth3.browser.js +++ b/oauth3.browser.js @@ -112,9 +112,9 @@ var tok; function cleanup() { - delete window['--oauth3-callback-' + state]; clearTimeout(tok); tok = null; + delete window['--oauth3-callback-' + state]; // this is last in case the window self-closes synchronously // (should never happen, but that's a negotiable implementation detail) if (!opts.reuseWindow) {