mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
chore: remove windows-1251 dep
This commit is contained in:
parent
d454d0c00b
commit
9740726652
3 changed files with 2 additions and 8 deletions
|
@ -9,7 +9,7 @@ import { JSDOM } from "jsdom";
|
|||
|
||||
import { format, parse, sub } from "date-fns";
|
||||
import { ru } from "date-fns/locale";
|
||||
import { decode } from "windows-1251";
|
||||
|
||||
import { onlinefixFormatter } from "@main/helpers";
|
||||
import makeFetchCookie from "fetch-cookie";
|
||||
import { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity";
|
||||
|
@ -93,7 +93,7 @@ export const getNewRepacksFromOnlineFix = async (
|
|||
const uploadDateText = gameDocument.querySelector("time")?.textContent;
|
||||
if (!uploadDateText) return;
|
||||
|
||||
let decodedDateText = decode(uploadDateText);
|
||||
let decodedDateText = uploadDateText;
|
||||
|
||||
// "Вчера" means yesterday.
|
||||
if (decodedDateText.includes("Вчера")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue