Skip to content

Commit 57baa11

Browse files
committed
fix(main): adds missing arguments
1 parent 63d7201 commit 57baa11

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* interface exports
33
*/
44

5+
/**
6+
* @ignore
7+
*/
58
let log = require('loglevel');
69
log.enableAll(); /* experimental */
710

@@ -60,7 +63,7 @@ export const isMobileApp = async () => app.isMobile();
6063
*
6164
* @return {Promise<any>}
6265
*/
63-
export const openLink = async () => app.openLink();
66+
export const openLink = async url => app.openLink(url);
6467

6568
/**
6669
* Open a link explicitly in the external browser.
@@ -69,7 +72,7 @@ export const openLink = async () => app.openLink();
6972
*
7073
* @return {Promise<any>}
7174
*/
72-
export const openLinkExternal = async () => app.openLinkExternal();
75+
export const openLinkExternal = async url => app.openLinkExternal(url);
7376

7477
/**
7578
* Open a link explicitly in the internal browser.
@@ -78,7 +81,7 @@ export const openLinkExternal = async () => app.openLinkExternal();
7881
*
7982
* @return {Promise<any>}
8083
*/
81-
export const openLinkInternal = async () => app.openLinkInternal();
84+
export const openLinkInternal = async url => app.openLinkInternal(url);
8285

8386
/**
8487
* Get all enabled content languages configured in the app.
@@ -112,7 +115,7 @@ export const getContentLanguages = async () => app.getContentLanguages();
112115
*
113116
* @return {Promise<string>}
114117
*/
115-
export const getPreferredContentLocale = async () => app.getPreferredContentLocale();
118+
export const getPreferredContentLocale = async content => app.getPreferredContentLocale(content);
116119

117120
/** @inheritdoc */
118121
export { openNativeFileDialog } from './lib/app'; /* experimental */

0 commit comments

Comments
 (0)