diff --git a/browser-compatibility.js b/browser-compatibility.js index 89cd62b5..97c8b8dd 100644 --- a/browser-compatibility.js +++ b/browser-compatibility.js @@ -23,8 +23,8 @@ if (needUpdateBrowser) navigator.userAgent; } })(navigator.userAgent); - -alert(`πŸ™ζ΅θ§ˆε™¨ε†…ζ Έη‰ˆζœ¬ε€ͺ老 | Browser kernel is too old + +let alertStr = `πŸ™ζ΅θ§ˆε™¨ε†…ζ Έη‰ˆζœ¬ε€ͺ老 | Browser kernel is too old ζ‚¨ηš„ζ΅θ§ˆε™¨η‰ˆζœ¬δΈΊ | Your browser is: ${browserVersion} @@ -32,5 +32,7 @@ ${browserVersion} Your browser does not support Optional chaining (?.) and Nullish coalescing operator (??) used in this program. θ―·ζ›΄ζ–°ζ‚¨ηš„ζ΅θ§ˆε™¨εˆ° Firefox(火狐) β‰₯ 74 ζˆ– Chrome(谷歌) β‰₯ 80 ζˆ– Safari(θ‹Ήζžœ) β‰₯ 13.1。 -Please update your browser to Firefox β‰₯ 74 or Chrome β‰₯ 80 or Safari β‰₯ 13.1.`); +Please update your browser to Firefox β‰₯ 74 or Chrome β‰₯ 80 or Safari β‰₯ 13.1.`; +alert(alertStr); +document.write(alertStr.replace(/\n/g,'
')); } \ No newline at end of file