Skip to content

Commit 75623d5

Browse files
committed
Handle exceptions on windows phone 8 in cordova.
csnover/TraceKit@dde0db7
1 parent b9a1292 commit 75623d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vendor/TraceKit/tracekit.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,9 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
348348
// URL needs to be able to fetched within the acceptable domain. Otherwise,
349349
// cross-domain errors will be triggered.
350350
var source = '';
351-
if (url.indexOf(document.domain) !== -1) {
351+
var domain = '';
352+
try { domain = document.domain; } catch (e) {}
353+
if (url.indexOf(domain) !== -1) {
352354
source = loadSource(url);
353355
}
354356
sourceCache[url] = source ? source.split('\n') : [];

0 commit comments

Comments
 (0)