Explorar el Código

Remove unnecessary if

James Kingsley hace 5 años
padre
commit
09ca0df49d
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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()