mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
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:
parent
0ab31d8c84
commit
7c6f229ec0
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue