diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-08 19:34:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-08 21:46:43 +0200 |
commit | b3c62d0bc86c01846ff67ba3f1d667334153b376 (patch) | |
tree | a8cb89c90d2884f179bcc1afb394bc528f9aac81 /Libraries/LibWeb/Bindings | |
parent | 531335f57c27021777482d9631825f7c9420bbf5 (diff) | |
download | serenity-b3c62d0bc86c01846ff67ba3f1d667334153b376.zip |
LibWeb: Expose the global object as "window"
Diffstat (limited to 'Libraries/LibWeb/Bindings')
-rw-r--r-- | Libraries/LibWeb/Bindings/WindowObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Bindings/WindowObject.cpp b/Libraries/LibWeb/Bindings/WindowObject.cpp index c101f6d6d1..aab2489376 100644 --- a/Libraries/LibWeb/Bindings/WindowObject.cpp +++ b/Libraries/LibWeb/Bindings/WindowObject.cpp @@ -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); |