瀏覽代碼

return an object containing the ID (clearTimeout)

Gildas 6 年之前
父節點
當前提交
298297a40e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {};