mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
refactor: rename mtime
This commit is contained in:
parent
04fdc644f6
commit
783c4dc350
2 changed files with 3 additions and 3 deletions
|
|
@ -13,8 +13,8 @@ const useStreamingServerUrls = () => {
|
||||||
const ctx = useModelState({ model: 'ctx' });
|
const ctx = useModelState({ model: 'ctx' });
|
||||||
|
|
||||||
const streamingServerUrls = ctx.streamingServerUrls.sort((a, b) => {
|
const streamingServerUrls = ctx.streamingServerUrls.sort((a, b) => {
|
||||||
const dateA = new Date(a._mtime).getTime();
|
const dateA = new Date(a.mtime).getTime();
|
||||||
const dateB = new Date(b._mtime).getTime();
|
const dateB = new Date(b.mtime).getTime();
|
||||||
return dateA - dateB;
|
return dateA - dateB;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
2
src/types/models/Ctx.d.ts
vendored
2
src/types/models/Ctx.d.ts
vendored
|
|
@ -69,7 +69,7 @@ type SearchHistory = SearchHistoryItem[];
|
||||||
|
|
||||||
type StreamingServerUrl = {
|
type StreamingServerUrl = {
|
||||||
url: string,
|
url: string,
|
||||||
_mtime: Date,
|
mtime: Date,
|
||||||
};
|
};
|
||||||
|
|
||||||
type StreamingServerUrls = StreamingServerUrl[];
|
type StreamingServerUrls = StreamingServerUrl[];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue