Browse Source

removed unecessary condition

Gildas 6 năm trước cách đây
mục cha
commit
c66eb72d6e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/lazy/content/content-lazy-loader.js

+ 1 - 1
lib/lazy/content/content-lazy-loader.js

@@ -146,7 +146,7 @@ this.singlefile.lib.lazy.content.loader = this.singlefile.lib.lazy.content.loade
 	}
 
 	async function clearAsyncTimeout(timeoutId) {
-		if (this.browser && browser && browser.runtime && browser.runtime.sendMessage) {
+		if (this.browser && browser.runtime && browser.runtime.sendMessage) {
 			await browser.runtime.sendMessage({ method: "lazyTimeout.clearTimeout", id: timeoutId });
 		} else {
 			return clearTimeout(timeoutId);