Skip to content

Commit a077bb1

Browse files
committed
fix: no user notifications in test windows
1 parent 5e41b2b commit a077bb1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

  • src/extensions/default/Phoenix

src/extensions/default/Phoenix/main.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ define(function (require, exports, module) {
3535
DefaultDialogs = brackets.getModule("widgets/DefaultDialogs");
3636

3737
const PERSIST_STORAGE_DIALOG_DELAY_SECS = 60000;
38-
let $icon, unsupportedBrowserDialogShown;
38+
let $icon;
3939

4040
function _addToolbarIcon() {
4141
const helpButtonID = "help-button";
@@ -52,10 +52,6 @@ define(function (require, exports, module) {
5252
});
5353
}
5454
function _showUnSupportedBrowserDialogue() {
55-
if(unsupportedBrowserDialogShown || Phoenix.isTestWindow){
56-
return;
57-
}
58-
unsupportedBrowserDialogShown = true;
5955
if(Phoenix.browser.isMobile || Phoenix.browser.isTablet){
6056
Dialogs.showModalDialog(
6157
DefaultDialogs.DIALOG_ID_ERROR,
@@ -76,6 +72,9 @@ define(function (require, exports, module) {
7672
}
7773

7874
function _detectUnSupportedBrowser() {
75+
if(Phoenix.isTestWindow) {
76+
return;
77+
}
7978
if(!Phoenix.isSupportedBrowser){
8079
_showUnSupportedBrowserDialogue();
8180
}

0 commit comments

Comments
 (0)