wifi-control-node icon indicating copy to clipboard operation
wifi-control-node copied to clipboard

Loses _this scope while promisifying

Open utamir opened this issue 7 years ago • 0 comments

If using via util.promisify, connectToAP loses _this scope let conn = await util.promisify(wifi.connectToAP)({ssid:'MySSID', password:'MyPassword'}); fails with

_this.getIfaceState is not a function since _this is global scope when being executed via promise

utamir avatar Sep 22 '17 22:09 utamir