From 80c91889af06490dd0a3c223ffde682c38ba0c93 Mon Sep 17 00:00:00 2001 From: leosyli-github Date: Fri, 22 Nov 2024 14:22:18 +0800 Subject: [PATCH] feat: open zh-CN open zh-CN --- manifest.json | 2 +- script.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index bec449189..1ff0a464e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Snapmaker-Copenhagen", "author": "Snapmaker", - "version": "3.6.27", + "version": "3.6.28", "api_version": 2, "default_locale": "en-us", "settings": [ diff --git a/script.js b/script.js index d0803b001..33168aa68 100644 --- a/script.js +++ b/script.js @@ -1,7 +1,7 @@ -const isCN = new RegExp('https://support.snapmaker.com/hc/zh-cn(.*)$', 'ig').test(window.location.href); -if (isCN) { - window.location = 'https://snapmaker.cn/support-cn/home'; -} +// const isCN = new RegExp('https://support.snapmaker.com/hc/zh-cn(.*)$', 'ig').test(window.location.href); +// if (isCN) { +// window.location = 'https://snapmaker.cn/support-cn/home'; +// } // https://github.com/jimmynotjim/scrollnav // Most from scrollnav@v3.0.2, with little modifications. const scrollnav = (function () {