Переглянути джерело

[demo]Update for icon plugin

dufu1991 3 роки тому
батько
коміт
2bfd5765a0
1 змінених файлів з 1 додано та 4 видалено
  1. 1 4
      demo/src/App.svelte

+ 1 - 4
demo/src/App.svelte

@@ -20,10 +20,7 @@
     const isIframe = params.get('channel') && params.get('channel') === 'iframe' ? '1' : '0'; //判断是否是iframe  judge whether it is iframe
     setContext('iframe', isIframe); //设置iframe  setting iframe
     let theme = localStorage.getItem('theme') === 'dark' ? 'dark' : 'light';
-    //截取字符?后面的所有字符
-    // intercept all characters after the character?
-    let urlLang = window.location.href.split('?')[1];
-    let urlParams = new URLSearchParams(urlLang);
+
     // 设置语言
     // setting language
     const isZh = sessionStorage.getItem('lang') === 'zh_CN';