Ver código fonte

return an object containing the ID (clearTimeout)

Gildas 6 anos atrás
pai
commit
298297a40e
1 arquivos alterados com 1 adições e 1 exclusões
  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(message.id);
+			return Promise.resolve({ id: message.id });
 		}
 	});
 	return {};