mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-01 21:50:29 +03:00
Fix version change check
This commit is contained in:
parent
dc237f10a8
commit
0662769696
4 changed files with 3 additions and 72 deletions
client/src/helpers
|
@ -12,7 +12,6 @@ import i18n from 'i18next';
|
|||
import uniqBy from 'lodash/uniqBy';
|
||||
import ipaddr from 'ipaddr.js';
|
||||
import queryString from 'query-string';
|
||||
import versionCompare from './versionCompare';
|
||||
import { getTrackerData } from './trackers/trackers';
|
||||
|
||||
import {
|
||||
|
@ -418,10 +417,6 @@ export const secondsToMilliseconds = (seconds) => {
|
|||
export const normalizeRulesTextarea = (text) => text?.replace(/^\n/g, '')
|
||||
.replace(/\n\s*\n/g, '\n');
|
||||
|
||||
export const isVersionGreater = (currentVersion, previousVersion) => (
|
||||
versionCompare(currentVersion, previousVersion) === -1
|
||||
);
|
||||
|
||||
export const normalizeWhois = (whois) => {
|
||||
if (Object.keys(whois).length > 0) {
|
||||
const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue