From f0c43be34029b6f1335e5f65ecfda5a8234f7617 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Thu, 19 Nov 2020 20:54:17 +0800 Subject: [PATCH] Prevent the splash window state from being updated repeatedly --- src/content/splash.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/content/splash.js b/src/content/splash.js index 8e7603e..87370ca 100644 --- a/src/content/splash.js +++ b/src/content/splash.js @@ -103,8 +103,9 @@ var splash = { window.sizeToContent(); }, + isWindowUpdated: false, updateWindowState: function () { - if (Services.appinfo.OS != "WINNT") { + if (Services.appinfo.OS != "WINNT" || splash.isWindowUpdated) { return; } @@ -146,6 +147,8 @@ var splash = { lib.close(); } catch (e) {} + + splash.isWindowUpdated = true; } };