mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +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
Notes:
sideshowbarker
2024-07-18 03:25:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7c6f229ec02
|
@ -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…
Reference in a new issue