Skip to content

Commit 58fae1c

Browse files
committed
fix: in electron, test window doesnt close
1 parent f096eaa commit 58fae1c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/document/DocumentCommandHandlers.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,8 +2310,7 @@ define(function (require, exports, module) {
23102310
});
23112311
}
23122312

2313-
let isTestWindow = (new window.URLSearchParams(window.location.search || "")).get("testEnvironment");
2314-
if (!isTestWindow) {
2313+
if (!Phoenix.isTestWindow) {
23152314
if(Phoenix.isNativeApp) {
23162315
_attachNativeUnloadHandler();
23172316
} else {

0 commit comments

Comments
 (0)