소스 검색

added missing globals

Gildas 7 년 전
부모
커밋
fa76c8d2c8
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/lazy/web-lazy-loader-after.js
  2. 2 0
      lib/single-file/util/timeout.js

+ 1 - 1
lib/lazy/web-lazy-loader-after.js

@@ -18,7 +18,7 @@
  *   along with SingleFile.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-/* global window, requestAnimationFrame, scrollBy, Element, document, dispatchEvent, UIEvent */
+/* global window, requestAnimationFrame, scrollBy, Element, document, dispatchEvent, UIEvent, clearTimeout */
 
 (() => {
 

+ 2 - 0
lib/single-file/util/timeout.js

@@ -18,6 +18,8 @@
  *   along with SingleFile.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+/* global setTimeout, clearTimeout */
+
 this.timeout = this.timeout || (() => {
 
 	const TIMEOUT_STEP = 100;