You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/desktopapps/index.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,21 +11,29 @@ To include it simply add a script element to a json called `_yab_desktop.json`:
11
11
12
12
```json
13
13
{
14
-
"name": "My Cool Website",// Name of the desktop shortcut,
15
-
"icon": https...png // appears when user launches app
14
+
"name": "My Cool Website",
15
+
"icon": "https...png",
16
16
"rules": {
17
-
"externalUrls": "browser",// "browser" opens any urls the user clicks on in yab. true allows user to open new sites in the same window. false disables all external urls from working.
18
-
"allowDevTools": false, // disable or enable yab dev tools
19
-
},
17
+
"externalUrls": "browser",
18
+
"allowDevTools": false
19
+
},
20
20
"window": {
21
-
"theme": "#0000"// the color of the window controls. Only works if user has setting "Use OS Native Window Controls" enabled in browser
22
-
"width": 800,// width in px
23
-
"height": 600,// height in px
24
-
"fullscreen": false// launch fullscreen?
21
+
"theme": "#0000",
22
+
"width": 800,
23
+
"height": 600,
24
+
"fullscreen": false
25
25
}
26
26
}
27
27
```
28
-
28
+
-`name` Name of the desktop shortcut
29
+
-`icon` Icon that appears when user launches app
30
+
-`rules` Opens any urls the user clicks on in yab. true allows user to open new sites in the same window. false disables all external urls from working.
31
+
-`externalUrls` "browser" opens any urls the user clicks on in yab. true allows user to open new sites in the same window. false disables all external urls from working.
32
+
-`allowDevTools` disable or enable yab dev tools
33
+
-`theme` the color of the window controls. Only works if user has setting "Use OS Native Window Controls" enabled in browser
34
+
-`width` width in px
35
+
-`height` height in px
36
+
-`fullscreen` launch fullscreen?
29
37
Some additional lua api exists to check if the website is running in the desktop environment:
0 commit comments