fix(aio): remove es2015 syntax from the onerror webmaster tools debugger (#17056)
This commit is contained in:
parent
51d7a65a2b
commit
0018acfede
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.onerror = function (message, url, lineNo, colNo, error) {
|
window.onerror = function (message, url, lineNo, colNo, error) {
|
||||||
let container = document.createElement('div');
|
var container = document.createElement('div');
|
||||||
|
|
||||||
container.style.color = 'red';
|
container.style.color = 'red';
|
||||||
container.style.position = 'fixed';
|
container.style.position = 'fixed';
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
container.style.top = '3em';
|
container.style.top = '3em';
|
||||||
container.style.left = '1em';
|
container.style.left = '1em';
|
||||||
|
|
||||||
let msg = document.createElement('pre');
|
var msg = document.createElement('pre');
|
||||||
msg.innerText = [
|
msg.innerText = [
|
||||||
'UA: ' + window.navigator.userAgent,
|
'UA: ' + window.navigator.userAgent,
|
||||||
'Message: ' + message,
|
'Message: ' + message,
|
||||||
|
|
Loading…
Reference in New Issue