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: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,18 +83,18 @@ Lets make an app called *MyCoolApp*.
83
83
84
84
That's it, you're done! Time for a beverage :coffee::tea::sake::baby_bottle::beer::beers::cocktail::tropical_drink::wine_glass:
85
85
86
-
:warning:the *"webplus.js"* file in the *"app"* folder contains the WebPlus engine code and you don't need to modify it.
86
+
:warning:***"app/webplus.js"*** contains the WebPlus engine code and you don't need to modify it.
87
87
88
88
# Under the Hood
89
89
90
90
When a WebPlus application launches, it..
91
91
92
-
1.Creates a [Windows Form](https://learn.microsoft.com/en-us/dotnet/desktop/winforms/?view=netframeworkdesktop-4.8) containing a [WebView2](https://learn.microsoft.com/en-us/microsoft-edge/webview2/) control.
93
-
2.Loads persistent options from ***"app/app.json"***.
92
+
1.Loads persistent options from ***"app/app.json"***.
93
+
2.Creates a [Windows Form](https://learn.microsoft.com/en-us/dotnet/desktop/winforms/?view=netframeworkdesktop-4.8) containing a [WebView2](https://learn.microsoft.com/en-us/microsoft-edge/webview2/) control.
94
94
3. Modifies the windows form according to the options.
95
95
4. Loads ***"app/app.html"*** into the WebView2 control.
96
96
97
-
When ***"app/app.html"*** has fully loaded the `window.onload` event in *"app/app.js"* is fired, which starts the app running.
97
+
When ***"app/app.html"*** has fully loaded the `window.onload` event in ***"app/app.js"*** is fired, which starts the app running.
98
98
99
99
So, for all intents and purposes WebPlus is a just a Windows Form encapsulating a WebView2 control that fills its client area, with a [host object coclass](https://learn.microsoft.com/en-us/microsoft-edge/webview2/how-to/hostobject?tabs=win32) glued on to provide some extra functionality, and hot reloading powered by a [FileSystemWatcher](https://learn.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?vview=netframework-4.8.1).
100
100
@@ -106,12 +106,13 @@ The default icon provided inside the ***"app"*** folder contains images with siz
106
106
107
107
## Options
108
108
109
-
WebPlus stores its persistent state in a the *"app/app.json"* file which has the following structure..
109
+
WebPlus stores its persistent state in ***"app/app.json"*** which has the following structure..
110
110
111
111
```
112
112
{
113
113
HotReload: {Boolean},
114
-
SaveOnExit {Boolean}, // Set to disable persistent state.
114
+
SaveOnExit: {Boolean}, // Set to disable persistent state.
0 commit comments