From c19928cd75d9c87096424605aa99917cc0f9bb1e Mon Sep 17 00:00:00 2001 From: ItsOnlyBinary Date: Mon, 8 Apr 2019 14:19:31 +0100 Subject: [PATCH] Also attempt to find plugin using prelim url --- prelim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prelim.js b/prelim.js index 72b40f7..4dcff36 100644 --- a/prelim.js +++ b/prelim.js @@ -11,7 +11,7 @@ if (window.mobilecheck() || kiwi.state.ui.is_touch) { let script = document.createElement('script'); let basePath = ''; kiwi.state.setting('plugins').forEach((e) => { - if (e.name === 'emoji') { + if (e.name === 'emoji' || e.url.match('plugin-emoji-prelim.min.js$')) { basePath = e.url.split('/'); basePath.pop(); basePath = basePath.join('/');