webext-messenger 0.22.0-3 → 0.22.0-4

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ export function once(function_) {
44
44
  let called = false;
45
45
  let returnValue;
46
46
  return function (...arguments_) {
47
- if (called) {
47
+ if (!called) {
48
48
  returnValue = function_.apply(this, arguments_);
49
49
  called = true;
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webext-messenger",
3
- "version": "0.22.0-3",
3
+ "version": "0.22.0-4",
4
4
  "description": "Browser Extension component messaging framework",
5
5
  "keywords": [],
6
6
  "repository": "pixiebrix/webext-messenger",