mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Expose the global object as "window"
This commit is contained in:
parent
531335f57c
commit
b3c62d0bc8
Notes:
sideshowbarker
2024-07-19 07:47:29 +09:00
Author: https://github.com/awesomekling
Commit: b3c62d0bc8
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ namespace Bindings {
|
|||
WindowObject::WindowObject(Window& impl)
|
||||
: m_impl(impl)
|
||||
{
|
||||
put("window", this);
|
||||
put_native_property("document", document_getter, document_setter);
|
||||
put_native_function("alert", alert);
|
||||
put_native_function("setInterval", set_interval, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue