diff --git a/src/ui/quickInstall/forumPost.tsx b/src/ui/quickInstall/forumPost.tsx index 96789f2..7d41064 100644 --- a/src/ui/quickInstall/forumPost.tsx +++ b/src/ui/quickInstall/forumPost.tsx @@ -23,7 +23,7 @@ export default () => after("default", ForumPostLongPressActionSheet, ([{ thread let postType: string; if (thread.parent_id === PLUGINS_CHANNEL_ID) { postType = "Plugin"; - } else if (thread.parent_id === THEMES_CHANNEL_ID) { + } else if (thread.parent_id === THEMES_CHANNEL_ID && window.__vendetta_loader?.features.themes) { postType = "Theme"; } else return; diff --git a/src/ui/quickInstall/url.ts b/src/ui/quickInstall/url.ts index cb379c5..8118f12 100644 --- a/src/ui/quickInstall/url.ts +++ b/src/ui/quickInstall/url.ts @@ -14,7 +14,7 @@ export default () => after("showSimpleActionSheet", showSimpleActionSheet, ([{ k let urlType: string; if (url.startsWith(PROXY_PREFIX)) { urlType = "Plugin"; - } else if (url.endsWith(".json")) { + } else if (url.endsWith(".json") && window.__vendetta_loader?.features.themes) { urlType = "Theme"; } else return;