Skip to content

Commit

Permalink
Fix. 对linux平台优化
Browse files Browse the repository at this point in the history
  • Loading branch information
RavelloH committed Jul 28, 2024
1 parent fdad74b commit 7aa52f0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"@prisma/client": "5.16.2",
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.12",
"argon2": "^0.40.3",
"argon2": "^0.31.0",
"ref-napi": "^3.0.3",
"instant.page": "^5.2.0",
"js-base64": "^3.7.7",
"jsonwebtoken": "^9.0.2",
Expand Down
26 changes: 26 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/assets/js/analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ function umamiAnalytics() {
if (cookie.getItem('settingEnableUmamiAnalytics') == 'false') {
return false;
}
// // 检测这是不是我自己的域名
// if (/rav.*h/.test(window.location.hostname) == false) {
// return false;
// }
// 检测这是不是我自己的域名
if (/rav.*h/.test(window.location.hostname) == false) {
return false;
}
(function () {
addEvent(getUmamiEventList());
var umami = document.createElement('script');
Expand Down

0 comments on commit 7aa52f0

Please sign in to comment.