diff --git a/android/src/main/java/ee/forgr/capacitor_inappbrowser/InAppBrowserPlugin.java b/android/src/main/java/ee/forgr/capacitor_inappbrowser/InAppBrowserPlugin.java index aaa72a1..23b59e6 100644 --- a/android/src/main/java/ee/forgr/capacitor_inappbrowser/InAppBrowserPlugin.java +++ b/android/src/main/java/ee/forgr/capacitor_inappbrowser/InAppBrowserPlugin.java @@ -230,7 +230,6 @@ public void getCookies(PluginCall call) { } } - @PluginMethod public void openWebView(PluginCall call) { String url = call.getString("url"); diff --git a/ios/Plugin/InAppBrowserPlugin.swift b/ios/Plugin/InAppBrowserPlugin.swift index feee678..a28c915 100644 --- a/ios/Plugin/InAppBrowserPlugin.swift +++ b/ios/Plugin/InAppBrowserPlugin.swift @@ -65,7 +65,7 @@ public class InAppBrowserPlugin: CAPPlugin { } dataStore.removeData(ofTypes: WKWebsiteDataStore.allWebsiteDataTypes(), for: domainRecords) { - call.resolve(); + call.resolve() } } } @@ -90,7 +90,6 @@ public class InAppBrowserPlugin: CAPPlugin { } } - @objc func openWebView(_ call: CAPPluginCall) { if !self.isSetupDone { self.setup() diff --git a/src/web.ts b/src/web.ts index 2de23b6..dfc58a9 100644 --- a/src/web.ts +++ b/src/web.ts @@ -1,10 +1,11 @@ import { WebPlugin } from "@capacitor/core"; -import { +import type { InAppBrowserPlugin, OpenWebViewOptions, OpenOptions, - GetCookieOptions, ClearCookieOptions, + GetCookieOptions, + ClearCookieOptions, } from "./definitions"; export class InAppBrowserWeb extends WebPlugin implements InAppBrowserPlugin {