client: fix module load order

This commit is contained in:
bordun 2020-03-30 18:22:34 +02:00
parent 76e06e3186
commit b625e3cb78
2 changed files with 2 additions and 5 deletions

View file

@ -1,8 +1,7 @@
require('./stacktrace')
document.addEventListener('DOMContentLoaded', function(event) {
require('./globals')
require('./stacktrace')
var locales = require('./locales'),
html = require('nanohtml')

View file

@ -1,10 +1,8 @@
var StackTrace = require('stacktrace-js'),
ipc
ipc = require('./ipc')
window.onerror = function(msg,url,row,col, error) {
if (!ipc) ipc = require('./ipc')
StackTrace.fromError(error).then((stackframes)=>{
var stringifiedStack = stackframes.filter((sf)=>{