Skip to content

Commit 01f4179

Browse files
committed
Fix load asset fail
1 parent e29e4db commit 01f4179

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

fontawesomepicker/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
require('./plugin.js')

fontawesomepicker/plugin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@
5959
var bodyHtml = ''
6060

6161
function initAsset(editor, pluginUrl) {
62-
if (categories.all) return
6362
var fontawesomeUrl = editor.getParam('fontawesomeUrl')
64-
loadCategories(pluginUrl)
6563
utils.loadStyle(document, fontawesomeUrl)
6664
utils.loadStyle(document, pluginUrl + '/asset/style.css')
6765
utils.loadStyle(editor.contentDocument, fontawesomeUrl)
66+
67+
if ( !categories.all ) {
68+
loadCategories(pluginUrl)
69+
}
6870
}
6971

7072
function loadCategories(pluginUrl) {

fontawesomepicker/plugin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)