Skip to content

Commit

Permalink
feat(pluginStore.js): external CSS (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry authored Jan 15, 2024
1 parent 1776950 commit a1becac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/pluginStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class pluginStore {
*/
static load(name) {
if (/^https?:\/\//.test(name)) {
mw.loader.load(name)
mw.loader.load(name, /\.css$/i.test(name) ? 'text/css' : undefined)
console.info('[InPageEdit] 从远程加载非官方插件', name)
} else {
loadScript(pluginCDN + '/plugins/' + name).then(
Expand Down

0 comments on commit a1becac

Please sign in to comment.