스크립트 에러 /콘솔 제거거

This commit is contained in:
khj0414 2025-02-24 09:45:11 +09:00
parent 6e4382f473
commit d3832018d3
2 changed files with 8 additions and 8 deletions

View File

@ -4,8 +4,8 @@
'use strict' 'use strict'
let menu, animate var menu, animate;
;(function () { (function () {
// Initialize menu // Initialize menu
//----------------- //-----------------

View File

@ -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);