James Kingsley 5 жил өмнө
parent
commit
09ca0df49d
1 өөрчлөгдсөн 1 нэмэгдсэн , 3 устгасан
  1. 1 3
      src/index.js

+ 1 - 3
src/index.js

@@ -18,9 +18,7 @@ const Spruce = {
 
         this.emit('init')
 
-        if ('Turbolinks' in window) {
-            document.addEventListener('turbolinks:render', this.attach)
-        }
+        document.addEventListener('turbolinks:render', this.attach)
         
         this.attach()