|
@@ -26,8 +26,8 @@ class CallbacksRegistry {
|
|
|
|
|
|
while ((match = regexp.exec(stackString)) !== null) {
|
|
|
const location = match[1]
|
|
|
- if (location.indexOf('(native)') !== -1) continue
|
|
|
- if (location.indexOf('electron.asar') !== -1) continue
|
|
|
+ if (location.includes('native')) continue
|
|
|
+ if (location.includes('electron.asar')) continue
|
|
|
|
|
|
ref = /([^/^)]*)\)?$/gi.exec(location)
|
|
|
filenameAndLine = ref[1]
|