Sfoglia il codice sorgente

return id instead of empty object

Gildas 6 anni fa
parent
commit
37b289e0d2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/lazy/bg/lazy-timeout.js

+ 1 - 1
lib/lazy/bg/lazy-timeout.js

@@ -34,7 +34,7 @@ singlefile.lib.lazy.bg.main = (() => {
 		}
 		if (message.method == "lazyTimeout.clearTimeout") {
 			clearTimeout(message.id);
-			return Promise.resolve({});
+			return Promise.resolve(message.id);
 		}
 	});
 	return {};