You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.js
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,22 @@ socket.on('connect', function () {
17
17
window.open('','_self','');
18
18
window.close();
19
19
20
-
letfirefoxWarning=
21
-
"<h1>Oops!</h1>"+
22
-
"<h3>Firefox doesn't allow windows to self-close.</h3>"+
23
-
"<h3>If you want the preview window to close automatically like in other browsers, go to about:config and set dom.allow_scripts_to_close_windows to true.</h3>"
20
+
letfirefoxWarning=`
21
+
<h1>Oops!</h1>
22
+
<h3>Your browser doesn't allow windows to self-close. </h3>
23
+
<h3>If you want the preview window to close automatically </h3>
24
+
<ul>
25
+
<li>in Firefox, go to about:config and set
26
+
dom.allow_scripts_to_close_windows to true.</li>
27
+
<li>in Qutebrowser (with old QtWebKit backend), go to :config-edit and
0 commit comments