[deploy] Log instantClick errors (#9226)
This commit is contained in:
parent
b42a843b78
commit
aa8e6e29ab
1 changed files with 9 additions and 1 deletions
|
|
@ -397,7 +397,15 @@ var instantClick
|
|||
parentNode = script.parentNode
|
||||
nextSibling = script.nextSibling
|
||||
parentNode.removeChild(script)
|
||||
parentNode.insertBefore(copy, nextSibling)
|
||||
try {
|
||||
parentNode.insertBefore(copy, nextSibling)
|
||||
} catch(err) {
|
||||
Honeybadger.notify(err, {
|
||||
component: 'instantClick',
|
||||
params: { copy: copy, nextSibling: nextSibling }
|
||||
})
|
||||
throw(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue