mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
web: Use util.the for accessing element of single-item lists.
This commit is contained in:
@@ -2,6 +2,7 @@ import $ from "jquery";
|
||||
|
||||
import * as blueslip from "./blueslip";
|
||||
import * as loading from "./loading";
|
||||
import * as util from "./util";
|
||||
|
||||
export let page_load_time: number | undefined;
|
||||
|
||||
@@ -16,7 +17,7 @@ $(() => {
|
||||
});
|
||||
|
||||
$.fn.get_offset_to_window = function () {
|
||||
return this[0]!.getBoundingClientRect();
|
||||
return util.the(this).getBoundingClientRect();
|
||||
};
|
||||
|
||||
$.fn.expectOne = function () {
|
||||
|
||||
Reference in New Issue
Block a user