mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 842147 - Translate JS exception from CaptivePortalDetector into informative debug message. r=vchang
This commit is contained in:
parent
2135e46a10
commit
5003b415b2
@ -868,8 +868,12 @@ let CaptivePortalDetectionHelper = (function() {
|
||||
capService.abort(_ongoingInterface);
|
||||
_ongoingInterface = null;
|
||||
}
|
||||
capService.checkCaptivePortal(interfaceName, capCallback);
|
||||
_ongoingInterface = interfaceName;
|
||||
try {
|
||||
capService.checkCaptivePortal(interfaceName, capCallback);
|
||||
_ongoingInterface = interfaceName;
|
||||
} catch (e) {
|
||||
debug('Fail to detect captive portal due to: ' + e.message);
|
||||
}
|
||||
};
|
||||
|
||||
let _abort = function (interfaceName) {
|
||||
|
Loading…
Reference in New Issue
Block a user