mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
LibWeb+WebContent: Setup the js console client earlier
This allows us to print messages in inline scripts. Also add an example of this in the welcome page to test this.
This commit is contained in:
parent
446a10a1ac
commit
4912b22e3b
6 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
|||
document.addEventListener("DOMContentLoaded", function () {
|
||||
console.log(
|
||||
"Hello from DOMContentLoaded! There should be a message before this from an inline script"
|
||||
);
|
||||
document.getElementById("ua").innerHTML = navigator.userAgent;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue