summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/NavigatorOnLine.h
blob: 20d7480541edafbdea4d698cc926599abf056dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (c) 2022, Andrew Kaster <akaster@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

namespace Web::HTML {

class NavigatorOnLineMixin {
public:
    // https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-online
    // FIXME: Reflect actual connectivity status.
    bool on_line() const { return true; }
};

}