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
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
document.write("<p>If you're still having problems, please contact us via one of the channels mentioned at the bottom of the <a target=\"blank\" href=\"../README.md\">README</a>.</p>");
// Abort if running in the shell, running on a server or not running in a supported and affected browser
59
-
if(typeof(brackets)!=="undefined"
60
-
||document.location.href.substr(0,7)!=="file://"
61
-
||!testCrossOriginError){
62
-
return;
63
-
}
64
-
65
-
// Remember the current error handler to restore it once we're done
66
-
varpreviousErrorHandler=window.onerror;
67
-
68
-
// Our error handler
69
-
functionhandleError(message,url,line){
70
-
// Ignore this error if it does not look like the rather vague cross origin error in Chrome
71
-
// Chrome will print it to the console anyway
72
-
if(!testCrossOriginError(message,url,line)){
73
-
if(previousErrorHandler){
74
-
returnpreviousErrorHandler(message,url,line);
75
-
}
76
-
return;
77
-
}
78
-
79
-
// Show an error message
80
-
alert("Oops! This application doesn't run in browsers yet.\n\nIt is built in HTML, but right now it runs as a desktop app so you can use it to edit local files. Please use the application shell in the following repo to run this application:\n\ngithub.com/adobe/brackets-shell");
81
-
82
-
// Restore the original handler for later errors
83
-
window.onerror=previousErrorHandler;
84
-
}
36
+
<!-- NOTE: All scripts must be external for Chrome App support: http://developer.chrome.com/apps/app_csp.html -->
85
37
86
-
// Install our error handler
87
-
window.onerror=handleError;
88
-
}());
38
+
<!-- Warn about failed cross origin requests in Chrome -->
document.write("<p>If you're still having problems, please contact us via one of the channels mentioned at the bottom of the <a target=\"blank\" href=\"../README.md\">README</a>.</p>");
// Abort if running in the shell, running on a server or not running in a supported and affected browser
45
+
if(typeof(brackets)!=="undefined"||
46
+
document.location.href.substr(0,7)!=="file://"||
47
+
!testCrossOriginError){
48
+
return;
49
+
}
50
+
51
+
// Remember the current error handler to restore it once we're done
52
+
varpreviousErrorHandler=window.onerror;
53
+
54
+
// Our error handler
55
+
functionhandleError(message,url,line){
56
+
// Ignore this error if it does not look like the rather vague cross origin error in Chrome
57
+
// Chrome will print it to the console anyway
58
+
if(!testCrossOriginError(message,url,line)){
59
+
if(previousErrorHandler){
60
+
returnpreviousErrorHandler(message,url,line);
61
+
}
62
+
return;
63
+
}
64
+
65
+
// Show an error message
66
+
alert("Oops! This application doesn't run in browsers yet.\n\nIt is built in HTML, but right now it runs as a desktop app so you can use it to edit local files. Please use the application shell in the following repo to run this application:\n\ngithub.com/adobe/brackets-shell");
0 commit comments