Browse Source

Remove unnecessary if

James Kingsley 5 years ago
parent
commit
09ca0df49d
1 changed files with 1 additions and 3 deletions
  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()