More 10.9 lazy load fixes
This commit is contained in:
parent
926f5aae48
commit
c13b69cb04
18
Jadefin.js
18
Jadefin.js
@ -87,13 +87,17 @@ export default JadefinIntegrity("Jadefin", import.meta.url, () => window["Jadefi
|
|||||||
this.webpackTryLoad = id => {
|
this.webpackTryLoad = id => {
|
||||||
const sid = `${id}`;
|
const sid = `${id}`;
|
||||||
|
|
||||||
const chunk = window["webpackChunk"].find(c => c[1][sid]);
|
if (!document.querySelector(".mainDrawer")) {
|
||||||
const chunkNames = chunk ? chunk[0].map(this.webpackChunkIdToJS) : null;
|
const chunk = window["webpackChunk"].find(c => c[1][sid]);
|
||||||
if (chunkNames && (chunkNames.find(c =>
|
const chunkNames = chunk ? chunk[0].map(this.webpackChunkIdToJS) : null;
|
||||||
c.startsWith("session-login.") ||
|
if (chunkNames && (chunkNames.find(c =>
|
||||||
c.startsWith("35463.")
|
c.startsWith("session-login.") ||
|
||||||
))) {
|
c.startsWith("syncPlay-ui-") ||
|
||||||
return null;
|
c.startsWith("35463.") ||
|
||||||
|
c.startsWith("1998.")
|
||||||
|
))) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -75,6 +75,8 @@ export default JadefinIntegrity("ExtrasMenu", import.meta.url, () => new (class
|
|||||||
async init(name, url) {
|
async init(name, url) {
|
||||||
await super.init(name, url);
|
await super.init(name, url);
|
||||||
|
|
||||||
|
await JadefinUtils.waitUntil(() => document.querySelector(".headerRight"));
|
||||||
|
|
||||||
this.initStyle();
|
this.initStyle();
|
||||||
this.initHeaderExtras();
|
this.initHeaderExtras();
|
||||||
this.initDrawerExtras();
|
this.initDrawerExtras();
|
||||||
|
@ -70,6 +70,8 @@ export default JadefinIntegrity("InputEater", import.meta.url, () => new (class
|
|||||||
async init(name, url) {
|
async init(name, url) {
|
||||||
await super.init(name, url);
|
await super.init(name, url);
|
||||||
|
|
||||||
|
await JadefinUtils.waitUntil(() => JadefinModules.syncPlay);
|
||||||
|
|
||||||
this.initStyle();
|
this.initStyle();
|
||||||
this.initHookSyncPlayEnabled();
|
this.initHookSyncPlayEnabled();
|
||||||
this.initHookSyncPlayDisabled();
|
this.initHookSyncPlayDisabled();
|
||||||
|
@ -62,6 +62,8 @@ export default JadefinIntegrity("VolumeBoost", import.meta.url, () => new (class
|
|||||||
async init(name, url) {
|
async init(name, url) {
|
||||||
await super.init(name, url);
|
await super.init(name, url);
|
||||||
|
|
||||||
|
await JadefinUtils.waitUntil(() => JadefinModules.actionSheet);
|
||||||
|
|
||||||
this.initHookActionSheetShow();
|
this.initHookActionSheetShow();
|
||||||
|
|
||||||
document.addEventListener("viewshow", () => {
|
document.addEventListener("viewshow", () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user