ソースを参照

LibWebView: Set a title on the Inspector and Task Manager views

These will be used to display the titles in the Task Manager window.
Timothy Flynn 1 年間 前
コミット
2fc52657b6

+ 1 - 0
Userland/Libraries/LibWebView/InspectorClient.cpp

@@ -351,6 +351,7 @@ void InspectorClient::load_inspector()
 <html>
 <head>
     <meta name="color-scheme" content="dark light">
+    <title>Inspector</title>
     <style type="text/css">
 )~~~"sv);
 

+ 1 - 0
Userland/Libraries/LibWebView/ProcessManager.cpp

@@ -159,6 +159,7 @@ String ProcessManager::generate_html()
     builder.append(R"(
         <html>
         <head>
+        <title>Task Manager</title>
         <style>
                 @media (prefers-color-scheme: dark) {
                     /* FIXME: We should be able to remove the HTML style when "color-scheme" is supported */