Skip to content

Commit 71991cf

Browse files
committed
fix: Remove trailing commas from loader for IE10/11
1 parent 9d62074 commit 71991cf

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/browser/src/loader.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// prettier-ignore
2+
// Prettier disabled due to trailing comma not working in IE10/11
13
(function(
24
_window,
35
_document,
@@ -7,7 +9,7 @@
79
_namespace,
810
_publicKey,
911
_sdkBundleUrl,
10-
_config,
12+
_config
1113
) {
1214
var lazy = true;
1315
var forceLoad = false;
@@ -154,7 +156,7 @@
154156
injectSdk(onLoadCallback);
155157
});
156158
}
157-
},
159+
}
158160
};
159161

160162
[
@@ -165,7 +167,7 @@
165167
'captureEvent',
166168
'configureScope',
167169
'withScope',
168-
'showReportDialog',
170+
'showReportDialog'
169171
].forEach(function(f) {
170172
_window[_namespace][f] = function() {
171173
queue({ f: f, a: arguments });
@@ -178,7 +180,7 @@
178180
_window[_onerror] = function(message, source, lineno, colno, exception) {
179181
// Use keys as "data type" to save some characters"
180182
queue({
181-
e: [].slice.call(arguments),
183+
e: [].slice.call(arguments)
182184
});
183185

184186
if (_oldOnerror) _oldOnerror.apply(_window, arguments);
@@ -188,7 +190,7 @@
188190
var _oldOnunhandledrejection = _window[_onunhandledrejection];
189191
_window[_onunhandledrejection] = function(exception) {
190192
queue({
191-
p: exception.reason,
193+
p: exception.reason
192194
});
193195
if (_oldOnunhandledrejection) _oldOnunhandledrejection.apply(_window, arguments);
194196
};
@@ -199,5 +201,5 @@
199201
});
200202
}
201203
})(window, document, 'script', 'onerror', 'onunhandledrejection', 'Sentry', 'loader.js', '../../build/bundle.js', {
202-
dsn: 'https://[email protected]/1',
204+
dsn: 'https://[email protected]/1'
203205
});

0 commit comments

Comments
 (0)