Skip to content

Commit 0b6b675

Browse files
omefireSBoudrias
authored andcommitted
BugFix: Automatically opt-out after timeout (#47)
1 parent 1e93f3e commit 0b6b675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Insight.prototype.askPermission = function (msg, cb) {
158158
// automatically opt out
159159
this.optOut = true;
160160
cb(null, false);
161-
}, this._permissionTimeout * 1000);
161+
}.bind(this), this._permissionTimeout * 1000);
162162
};
163163

164164
module.exports = Insight;

0 commit comments

Comments
 (0)