diff --git a/dist/jhs-enhance.user.js b/dist/jhs-enhance.user.js index 59c6854..b5677aa 100644 --- a/dist/jhs-enhance.user.js +++ b/dist/jhs-enhance.user.js @@ -1101,6 +1101,11 @@ insertStyle(mainCss); insertStyle(subtitleModalCss); window.$ = window.jQuery = $$1; + if (typeof $$1.trim !== "function") { + $$1.trim = function (text) { + return text == null ? "" : (text + "").trim(); + }; + } window.localforage = localforage$1; window.Toastify = Toastify$1; window.md5 = md5$1; @@ -4098,7 +4103,7 @@ ${value}\r
+
SOL
diff --git a/src/core/globals.js b/src/core/globals.js index 8b902b1..c4dc4e0 100644 --- a/src/core/globals.js +++ b/src/core/globals.js @@ -7,6 +7,11 @@ import QRCode from 'qrcodejs'; import { currentHref, isJavDb, isJavBus, isSearchPage, Status_RUNNING, Status_SUCCESS, Status_FAIL, Status_LOADING, Status_FILTER, Status_FAVORITE, Status_HAS_DOWN, Status_HAS_WATCH, NO, YES } from './constants.js'; window.$ = window.jQuery = $; +if (typeof $.trim !== 'function') { + $.trim = function (text) { + return text == null ? '' : (text + '').trim(); + }; +} window.localforage = localforage; window.Toastify = Toastify; window.md5 = md5;