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:
parent
b9eae6397b
commit
9f41749c4a
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue