Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 7b68761

Browse files
authored
Merge pull request #414 from sahibjotsaggu/classDupBug
Fix: class duplication during initialization without GUI
2 parents 11ee648 + bc1aaad commit 7b68761

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ initWithoutGUI = (el, opts) ->
7878
if [' ', ' '].join(el.className).indexOf(' literally ') == -1
7979
el.className = el.className + ' literally'
8080

81-
el.className = el.className + ' toolbar-hidden'
81+
if el.className.includes('toolbar-hidden') == false
82+
el.className = el.className + ' toolbar-hidden'
8283

8384
drawingViewElement = document.createElement('div')
8485
drawingViewElement.className = 'lc-drawing'

0 commit comments

Comments
 (0)