1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 17:55:09 +00:00

LibWeb: Expose the global object as "window"

This commit is contained in:
Andreas Kling 2020-04-08 19:34:13 +02:00
parent 531335f57c
commit b3c62d0bc8

View file

@ -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);