From a9e208acbda47ff95b4a230bff8c59ef1f0ffc7f Mon Sep 17 00:00:00 2001 From: Niklas Merz Date: Sat, 4 Nov 2023 19:56:09 +0100 Subject: [PATCH] update disable & const --- src/browser/InAppBrowserProxy.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/browser/InAppBrowserProxy.js b/src/browser/InAppBrowserProxy.js index 23b5e062e..d5f15ea4c 100644 --- a/src/browser/InAppBrowserProxy.js +++ b/src/browser/InAppBrowserProxy.js @@ -26,28 +26,28 @@ let browserWrap, popup, navigationButtonsDiv, navigationButtonsDivInner, backBut function attachNavigationEvents (element, callback) { const onError = function () { try { - callback({ type: 'loaderror', url: this.contentWindow.location.href }, { keepCallback: true }); // eslint-disable-line standard/no-callback-literal + callback({ type: 'loaderror', url: this.contentWindow.location.href }, { keepCallback: true }); // eslint-disable-line n/no-callback-literal } catch (err) { // blocked by CORS :\ - callback({ type: 'loaderror', url: null }, { keepCallback: true }); // eslint-disable-line standard/no-callback-literal + callback({ type: 'loaderror', url: null }, { keepCallback: true }); // eslint-disable-line n/no-callback-literal } }; element.addEventListener('pageshow', function () { try { - callback({ type: 'loadstart', url: this.contentWindow.location.href }, { keepCallback: true }); // eslint-disable-line standard/no-callback-literal + callback({ type: 'loadstart', url: this.contentWindow.location.href }, { keepCallback: true }); // eslint-disable-line n/no-callback-literal } catch (err) { // blocked by CORS :\ - callback({ type: 'loadstart', url: null }, { keepCallback: true }); // eslint-disable-line standard/no-callback-literal + callback({ type: 'loadstart', url: null }, { keepCallback: true }); // eslint-disable-line n/no-callback-literal } }); element.addEventListener('load', function () { try { - callback({ type: 'loadstop', url: this.contentWindow.location.href }, { keepCallback: true }); // eslint-disable-line standard/no-callback-literal + callback({ type: 'loadstop', url: this.contentWindow.location.href }, { keepCallback: true }); // eslint-disable-line n/no-callback-literal } catch (err) { // blocked by CORS :\ - callback({ type: 'loadstop', url: null }, { keepCallback: true }); // eslint-disable-line standard/no-callback-literal + callback({ type: 'loadstop', url: null }, { keepCallback: true }); // eslint-disable-line n/no-callback-literal } }); @@ -55,7 +55,7 @@ function attachNavigationEvents (element, callback) { element.addEventListener('abort', onError); } -var IAB = { +const IAB = { close: function (win, lose) { if (browserWrap) { // use the "open" function callback so that the exit event is fired properly