1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-03-25 21:00:43 +01:00

Don't consider theme when checking if default

This commit is contained in:
Robbie Antenesse 2019-06-10 20:13:01 -06:00
parent b9eae6397b
commit 9f41749c4a

View file

@ -9,10 +9,12 @@ export function saveToken(token) {
export function dictionaryIsDefault() {
const defaultDictionary = cloneObject(DEFAULT_DICTIONARY);
delete defaultDictionary.settings.theme;
delete defaultDictionary.lastUpdated;
delete defaultDictionary.createdOn;
delete defaultDictionary.version;
const currentDictionary = cloneObject(window.currentDictionary);
delete currentDictionary.settings.theme;
delete currentDictionary.lastUpdated;
delete currentDictionary.createdOn;
delete currentDictionary.version;