@hanwha-ss1/plugin 0.7.7 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,16 +13,21 @@ public class OpenBrowserPlugin: CAPPlugin {
13
13
  let url = call.getString("url") ?? ""
14
14
  let isCloseBtn = call.getBool("isCloseBtn") ?? true
15
15
  let clear = call.getBool("clear") ?? false
16
-
17
- DispatchQueue.main.async {
18
- let controller = self.implementation.builder(url: url, isCloseBtn: isCloseBtn, clear: clear)
19
- controller.modalPresentationStyle = .fullScreen
20
- // 브라우저 중첩되게 호출하는 경우가 있어서 아래와 같이 처리
21
- let topController = UIViewController.topViewController(controller: _bridge.viewController)
22
- topController?.present(controller, animated: true)
23
- }
16
+ let ext = call.getBool("ext") ?? false
24
17
 
18
+
19
+ DispatchQueue.main.async {
25
20
 
21
+ if (ext) {
22
+ UIApplication.shared.open(URL(string: url)!, options: [:], completionHandler: nil)
23
+ } else {
24
+ let controller = self.implementation.builder(url: url, isCloseBtn: isCloseBtn, clear: clear)
25
+ controller.modalPresentationStyle = .fullScreen
26
+ // 브라우저 중첩되게 호출하는 경우가 있어서 아래와 같이 처리
27
+ let topController = UIViewController.topViewController(controller: _bridge.viewController)
28
+ topController?.present(controller, animated: true)
29
+ }
30
+ }
26
31
  }
27
32
  }
28
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanwha-ss1/plugin",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "description": "Plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",