Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert JS utilities to services #10

Open
openXapps opened this issue Jan 25, 2022 · 0 comments
Open

Convert JS utilities to services #10

openXapps opened this issue Jan 25, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@openXapps
Copy link
Owner

Convert JS in utilities folder to services.

  • defaultdata.js
  • localstorage.js

Couple of hints for localstorage.js - initialUse()

const currVersion = getDefaultData().settings.version;
let skipValidation = false;

// Version 0.4.0 changes
if (!skipValidation && currVersion == '0.4.0') {
if (settings.statusOK && settings.data.version !== currVersion) {
if (typeof settings.data.theme.template !== 'undefined') {
saveLocalStorage(storageObject.setting, { ...settings.data, theme: settings.data.theme.template });
}
}
}

@openXapps openXapps added the enhancement New feature or request label Jan 25, 2022
@openXapps openXapps self-assigned this Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant