Skip to content

Commit

Permalink
feat: open zh-CN
Browse files Browse the repository at this point in the history
open zh-CN
  • Loading branch information
leo-songye-li committed Nov 22, 2024
1 parent 762b2ba commit 80c9188
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
8 changes: 4 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down

0 comments on commit 80c9188

Please sign in to comment.