스크립트 에러 /콘솔 제거거
This commit is contained in:
parent
6e4382f473
commit
d3832018d3
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
let menu, animate
|
var menu, animate;
|
||||||
;(function () {
|
(function () {
|
||||||
// Initialize menu
|
// Initialize menu
|
||||||
//-----------------
|
//-----------------
|
||||||
|
|
||||||
|
|||||||
@ -38,12 +38,12 @@ const loadScript = src => {
|
|||||||
script.type = 'text/javascript';
|
script.type = 'text/javascript';
|
||||||
script.async = true;
|
script.async = true;
|
||||||
document.body.appendChild(script);
|
document.body.appendChild(script);
|
||||||
script.onload = () => {
|
// script.onload = () => {
|
||||||
console.log(`${src} loaded successfully.`);
|
// console.log(`${src} loaded successfully.`);
|
||||||
};
|
// };
|
||||||
script.onerror = () => {
|
// script.onerror = () => {
|
||||||
console.error(`Failed to load script: ${src}`);
|
// console.error(`Failed to load script: ${src}`);
|
||||||
};
|
// };
|
||||||
};
|
};
|
||||||
nextTick(async () => {
|
nextTick(async () => {
|
||||||
await wait(200);
|
await wait(200);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user