소스 검색

Remove unnecessary if

James Kingsley 5 년 전
부모
커밋
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()