mirror of
https://github.com/tabler/tabler.git
synced 2025-12-24 02:38:15 +04:00
Release 1.0.0-beta7
This commit is contained in:
10
dist/js/demo.js
vendored
10
dist/js/demo.js
vendored
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* Tabler v1.0.0-beta6 (https://tabler.io)
|
||||
* @version 1.0.0-beta6
|
||||
* Tabler v1.0.0-beta7 (https://tabler.io)
|
||||
* @version 1.0.0-beta7
|
||||
* @link https://tabler.io
|
||||
* Copyright 2018-2022 The Tabler Authors
|
||||
* Copyright 2018-2022 codecalm.net Paweł Kuna
|
||||
@@ -93,7 +93,8 @@
|
||||
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
||||
key = _Object$entries$_i[0],
|
||||
params = _Object$entries$_i[1];
|
||||
config[key] = localStorage.getItem(params.localStorage) ? localStorage.getItem(params.localStorage) : params.default;
|
||||
var lsParams = localStorage.getItem(params.localStorage);
|
||||
config[key] = lsParams ? lsParams : params.default;
|
||||
}
|
||||
var parseUrl = function parseUrl() {
|
||||
var search = window.location.search.substring(1);
|
||||
@@ -120,8 +121,7 @@
|
||||
}
|
||||
};
|
||||
var updateBodyClasses = function updateBodyClasses() {
|
||||
document.body.classList.remove('theme-dark');
|
||||
document.body.classList.remove('theme-light');
|
||||
document.body.classList.remove('theme-dark', 'theme-light');
|
||||
document.body.classList.add("theme-".concat(config.theme));
|
||||
};
|
||||
var submitForm = function submitForm(form) {
|
||||
|
||||
Reference in New Issue
Block a user