Skip to content

Commit a837a53

Browse files
authored
Update index.js
1 parent 79dd10b commit a837a53

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/index.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,11 @@ function setWindowAutoHide(autoHide) {
120120
});
121121
}
122122

123-
if (framed) {
124-
if (autoHide) {
125-
window.on("close", function(event) {
126-
event.preventDefault();
127-
window.hide();
128-
});
129-
}
123+
if (framed && autoHide) {
124+
window.on("close", function(event) {
125+
event.preventDefault();
126+
window.hide();
127+
});
130128
}
131129
}
132130

0 commit comments

Comments
 (0)