Function
customTab
(
url: string,
options?: {
showTitle?: boolean;
toolbarColor?: string;
},
)
Source from the content-addressed store, hash-verified
| 4 | * Open custom tab |
| 5 | */ |
| 6 | export default function customTab( |
| 7 | url: string, |
| 8 | options?: { |
| 9 | showTitle?: boolean; |
| 10 | toolbarColor?: string; |
| 11 | }, |
| 12 | ) { |
| 13 | if (!options) { |
| 14 | options = {}; |
| 15 | } |
| 16 | |
| 17 | options.showTitle ??= true; |
| 18 | |
| 19 | return new Promise((resolve, reject) => { |
| 20 | cordova.exec(resolve, reject, "CustomTabs", "open", [url, options]); |
| 21 | }); |
| 22 | } |
Tested by
no test coverage detected