forked from phcode-dev/staging.phcode.dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathxorigin.js
More file actions
1 lines (1 loc) · 1012 Bytes
/
xorigin.js
File metadata and controls
1 lines (1 loc) · 1012 Bytes
1
!function(){var testCrossOriginError;if(-1!==window.navigator.userAgent.search(" Chrome/")?testCrossOriginError=function(message,url,line){return""===url&&0===line&&"Script error."===message}:"Opera/"===window.navigator.userAgent.slice(0,6)&&(testCrossOriginError=function(message,url,line){return"Uncaught exception: DOMException: NETWORK_ERR"===message}),"undefined"==typeof brackets&&"file://"===window.document.location.href.substr(0,7)&&testCrossOriginError){var previousErrorHandler=window.onerror;window.onerror=handleError}function handleError(message,url,line){if(!testCrossOriginError(message,url,line))return previousErrorHandler?previousErrorHandler(message,url,line):void 0;window.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"),window.onerror=previousErrorHandler}}();