fix(aio): remove es2015 syntax from the onerror webmaster tools debugger (#17056)

This commit is contained in:
Igor Minar 2017-05-26 15:48:55 -07:00 committed by Chuck Jazdzewski
parent 51d7a65a2b
commit 0018acfede
1 changed files with 2 additions and 2 deletions

View File

@ -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,