Skip to content

Commit 1e130af

Browse files
committed
Only load editor if it's needed
1 parent e560071 commit 1e130af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/coffee/mods.coffee

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
editor = new Editor()
2-
editor.render()
1+
if $('textarea').length
2+
editor = new Editor()
3+
editor.render()
34

45
Dropzone = require('dropzone').Dropzone
56

0 commit comments

Comments
 (0)