Просмотр исходного кода

replaced "return await" with "return"

Gildas 7 лет назад
Родитель
Сommit
a7080cb3b5
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      extension/core/bg/config.js
  2. 1 1
      lib/lazy/content/content-lazy-loader.js

+ 1 - 1
extension/core/bg/config.js

@@ -184,7 +184,7 @@ singlefile.config = (() => {
 
 	async function getConfig() {
 		await pendingUpgradePromise;
-		return await browser.storage.local.get(["profiles", "defaultProfile"]);
+		return browser.storage.local.get(["profiles", "defaultProfile"]);
 	}
 
 	return {

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

@@ -68,7 +68,7 @@ this.lazyLoader = this.lazyLoader || (() => {
 
 	async function deferLazyLoadEnd(timeoutId, idleTimeoutId, observer, options, resolve) {
 		await clearTimeout(timeoutId);
-		return await setTimeout(async () => await lazyLoadEnd(idleTimeoutId, observer, resolve), options.maxLazyLoadImagesIdleTime);
+		return setTimeout(async () => await lazyLoadEnd(idleTimeoutId, observer, resolve), options.maxLazyLoadImagesIdleTime);
 	}
 
 	function lazyLoadEnd(idleTimeoutId, observer, resolve) {