Skip to content

Commit 78a3010

Browse files
authored
Merge pull request #452 from webui-dev/WebKit-WebView-Conflict-Fix
Change WebView to Webview (macOS WebKit Conflict)
2 parents fb63521 + 17a3a75 commit 78a3010

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/webui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ enum webui_browser {
129129
Epic, // 10. The Epic Browser
130130
Yandex, // 11. The Yandex Browser
131131
ChromiumBased, // 12. Any Chromium based browser
132-
WebView, // 13. WebView (Non-web-browser)
132+
Webview, // 13. WebView (Non-web-browser)
133133
};
134134

135135
enum webui_runtime {

src/webui.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@ bool webui_show_browser(size_t window, const char* content, size_t browser) {
16491649
_webui_window_t* win = _webui.wins[window];
16501650

16511651
// Show the window using a specific browser only
1652-
win->allow_webview = (browser == WebView ? true : false);
1652+
win->allow_webview = (browser == Webview ? true : false);
16531653

16541654
// Show for all connected clients
16551655
return _webui_show(win, NULL, content, browser);
@@ -7056,7 +7056,7 @@ static bool _webui_show_window(_webui_window_t* win, struct mg_connection* clien
70567056
#ifdef WEBUI_LOG
70577057
printf("[Core]\t\t_webui_show_window() -> WebView Found\n");
70587058
#endif
7059-
win->current_browser = WebView;
7059+
win->current_browser = Webview;
70607060
runWebView = true;
70617061
}
70627062
else {

0 commit comments

Comments
 (0)