chore(lint): update eslint config and apply fixes (#1032)

This commit is contained in:
Niklas Merz
2023-11-06 22:14:27 +01:00
committed by GitHub
parent 4b3c0f126d
commit 51959ec268
6 changed files with 2141 additions and 1983 deletions
+8 -8
View File
@@ -20,10 +20,10 @@
*/
(function () {
var exec = require('cordova/exec');
var channel = require('cordova/channel');
var modulemapper = require('cordova/modulemapper');
var urlutil = require('cordova/urlutil');
const exec = require('cordova/exec');
const channel = require('cordova/channel');
const modulemapper = require('cordova/modulemapper');
const urlutil = require('cordova/urlutil');
function InAppBrowser () {
this.channels = {
@@ -100,19 +100,19 @@
module.exports = function (strUrl, strWindowName, strWindowFeatures, callbacks) {
// Don't catch calls that write to existing frames (e.g. named iframes).
if (window.frames && window.frames[strWindowName]) {
var origOpenFunc = modulemapper.getOriginalSymbol(window, 'open');
const origOpenFunc = modulemapper.getOriginalSymbol(window, 'open');
return origOpenFunc.apply(window, arguments);
}
strUrl = urlutil.makeAbsolute(strUrl);
var iab = new InAppBrowser();
const iab = new InAppBrowser();
callbacks = callbacks || {};
for (var callbackName in callbacks) {
for (const callbackName in callbacks) {
iab.addEventListener(callbackName, callbacks[callbackName]);
}
var cb = function (eventname) {
const cb = function (eventname) {
iab._eventHandler(eventname);
};