mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-09-28 07:36:38 +08:00
修复在115首页导致jq加载冲突
This commit is contained in:
Vendored
+2
-2
@@ -1100,7 +1100,7 @@
|
||||
);
|
||||
insertStyle(mainCss);
|
||||
insertStyle(subtitleModalCss);
|
||||
window.$ = window.jQuery = $$1;
|
||||
window.jQuery = $$1;
|
||||
if (typeof $$1.trim !== "function") {
|
||||
$$1.trim = function (text) {
|
||||
return text == null ? "" : (text + "").trim();
|
||||
@@ -17059,4 +17059,4 @@ ${err.stack}` : "");
|
||||
pluginManager.processPlugins().then();
|
||||
})();
|
||||
|
||||
})($, localforage, Toastify, md5, Viewer, QRCode);
|
||||
})(jQuery, localforage, Toastify, md5, Viewer, QRCode);
|
||||
+1
-1
@@ -6,7 +6,7 @@ import Viewer from 'viewerjs';
|
||||
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 = $;
|
||||
window.jQuery = $;
|
||||
if (typeof $.trim !== 'function') {
|
||||
$.trim = function (text) {
|
||||
return text == null ? '' : (text + '').trim();
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ export default defineConfig({
|
||||
build: {
|
||||
fileName: 'jhs-enhance.user.js',
|
||||
externalGlobals: {
|
||||
'jquery': '$',
|
||||
'jquery': 'jQuery',
|
||||
'localforage': 'localforage',
|
||||
'toastify-js': 'Toastify',
|
||||
'blueimp-md5': 'md5',
|
||||
|
||||
Reference in New Issue
Block a user