mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
page_params: Move page_load_time to zulip_test.
This isn’t sent by the server; it’s a client-side global variable. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
baf6c68ab8
commit
2cf8f1c063
@@ -5,6 +5,8 @@ import * as loading from "./loading";
|
||||
import {page_params} from "./page_params";
|
||||
import * as util from "./util";
|
||||
|
||||
export let page_load_time: number | undefined;
|
||||
|
||||
// Miscellaneous early setup.
|
||||
$(() => {
|
||||
if (util.is_mobile()) {
|
||||
@@ -12,7 +14,7 @@ $(() => {
|
||||
page_params.needs_tutorial = false;
|
||||
}
|
||||
|
||||
page_params.page_load_time = Date.now();
|
||||
page_load_time = Date.now();
|
||||
|
||||
// Display loading indicator. This disappears after the first
|
||||
// get_events completes.
|
||||
|
||||
Reference in New Issue
Block a user