LibWeb: Make navigator.onLine always true for now

Some pages refuse to load if they think we are offline, so let's say
we're online. :^)
This commit is contained in:
Andreas Kling 2021-09-26 19:14:19 +02:00
parent 0ab31d8c84
commit 7c6f229ec0
Notes: sideshowbarker 2024-07-18 03:25:39 +09:00

View file

@ -34,6 +34,9 @@ void NavigatorObject::initialize(JS::GlobalObject& global_object)
define_direct_property("product", js_string(heap, "Gecko"), attr);
define_native_accessor("userAgent", user_agent_getter, {}, JS::Attribute::Configurable | JS::Attribute::Enumerable);
// FIXME: Reflect actual connectivity status.
define_direct_property("onLine", JS::Value(true), attr);
}
NavigatorObject::~NavigatorObject()