Browse Source

return an object containing the ID (clearTimeout)

Gildas 6 years ago
parent
commit
298297a40e
1 changed files with 1 additions and 1 deletions
  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 {};