Skip to content

Commit

Permalink
修改判断emby方式和dev分支一致,改为仅获取版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
okitaAsuka committed Mar 17, 2024
1 parent ecc235e commit b08c6e8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ede.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@

(async function () {
'use strict';
const appVersion = document.querySelector('html').getAttribute('data-appversion').substring(0, 3);
const isVersionOld = appVersion < 4.8;
const applicationName = document.querySelector('meta[name="application-name"]').content;
if (applicationName == 'Emby' || applicationName.includes('Media Server')) {
if (document.querySelector('meta[name="application-name"]').content == 'Emby' || document.documentElement.classList.contains('accent-emby')) {
// ------ configs start------
const appVersion = document.querySelector('html').getAttribute('data-appversion').substring(0, 3);
const isVersionOld = appVersion < 4.8;
const check_interval = 200;
const chConverTtitle = ['当前状态: 未启用', '当前状态: 转换为简体', '当前状态: 转换为繁体'];
// 0:当前状态关闭 1:当前状态打开
Expand Down

0 comments on commit b08c6e8

Please sign in to comment.