Don't consider theme when checking if default
This commit is contained in:
parent
b9eae6397b
commit
9f41749c4a
|
@ -9,10 +9,12 @@ export function saveToken(token) {
|
||||||
|
|
||||||
export function dictionaryIsDefault() {
|
export function dictionaryIsDefault() {
|
||||||
const defaultDictionary = cloneObject(DEFAULT_DICTIONARY);
|
const defaultDictionary = cloneObject(DEFAULT_DICTIONARY);
|
||||||
|
delete defaultDictionary.settings.theme;
|
||||||
delete defaultDictionary.lastUpdated;
|
delete defaultDictionary.lastUpdated;
|
||||||
delete defaultDictionary.createdOn;
|
delete defaultDictionary.createdOn;
|
||||||
delete defaultDictionary.version;
|
delete defaultDictionary.version;
|
||||||
const currentDictionary = cloneObject(window.currentDictionary);
|
const currentDictionary = cloneObject(window.currentDictionary);
|
||||||
|
delete currentDictionary.settings.theme;
|
||||||
delete currentDictionary.lastUpdated;
|
delete currentDictionary.lastUpdated;
|
||||||
delete currentDictionary.createdOn;
|
delete currentDictionary.createdOn;
|
||||||
delete currentDictionary.version;
|
delete currentDictionary.version;
|
||||||
|
|
Loading…
Reference in New Issue