From 643217ab700a8d01acdfc592e6b49063b5c379e6 Mon Sep 17 00:00:00 2001 From: xLuxy <67131061+xLuxy@users.noreply.github.com> Date: Fri, 13 Oct 2023 22:41:51 +0200 Subject: [PATCH] client: Fix webview compat class ctor --- client/js/compatibility/classes/webview.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/js/compatibility/classes/webview.js b/client/js/compatibility/classes/webview.js index 48be544c0..b6364bb0a 100644 --- a/client/js/compatibility/classes/webview.js +++ b/client/js/compatibility/classes/webview.js @@ -16,19 +16,19 @@ class WebView extends alt.WebView { const url = args[0]; let instance = null; - if (args.length() == 4) { + if (args.length == 4) { const [_, isOverlay, pos, size] = args; instance = alt.WebView.create({ url, isOverlay, pos, size }); - } else if (args.length() == 3 && typeof args[2] == "object") { + } else if (args.length == 3 && typeof args[2] == "object") { const [_, pos, size] = args; instance = alt.WebView.create({ url, pos, size }); - } else if (args.length() == 3) { + } else if (args.length == 3) { const [_, drawable, targetTexture] = args; instance = alt.WebView.create({ url, drawable, targetTexture }); - } else if (args.length() == 2 && typeof args[1] == "object") { + } else if (args.length == 2 && typeof args[1] == "object") { const [_, pos] = args; alt.WebView.create({ url, pos }); - } else if (args.length() == 2) { + } else if (args.length == 2) { const isOverlay = args[1]; instance = alt.WebView.create({ url, isOverlay }); } else {