mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-22 15:31:03 +01:00
Sync: settings are not saved locally (#1236)
This commit is contained in:
parent
12d1313ef8
commit
3073ceec1a
@ -36,7 +36,7 @@ options._renderContents = function () {
|
||||
document.body.setAttribute('dir', options._scriptDirection);
|
||||
translationComplete = helpers.insertI18nContentIntoDocument(document);
|
||||
|
||||
options._determineOptionValues().then(options._determineLocalOptionValues).then(options._renderOptionsPanel);
|
||||
options._determineLocalOptionValues().then(options._determineOptionValues).then(options._renderOptionsPanel);
|
||||
|
||||
if (!translationComplete) {
|
||||
options._renderLocaleNotice();
|
||||
@ -152,6 +152,7 @@ options._determineOptionValues = function () {
|
||||
for (let element of nodeList) {
|
||||
optionList[element.getAttribute('data-option')] = true;
|
||||
}
|
||||
delete optionList.internalStatistics;
|
||||
|
||||
optionKeys = Object.keys(optionList);
|
||||
|
||||
@ -285,7 +286,7 @@ options.onOptionChanged = function ({target}) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (options._storageType === 'sync') {
|
||||
if (options._storageType === 'sync' && optionKey !== 'internalStatistics') {
|
||||
chrome.storage.sync.set({
|
||||
[optionKey]: optionValue,
|
||||
});
|
||||
|
@ -25,8 +25,9 @@
|
||||
<h2>New in LocalCDN:</h2>
|
||||
</div>
|
||||
<div class="release-notes-area">
|
||||
<p></p>
|
||||
<p>Fixed</p>
|
||||
<ul>
|
||||
<li>Sync: settings are not saved locally (<a href="https://codeberg.org/nobody/LocalCDN/issues/1236">#1236</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="generator-section">
|
||||
|
Loading…
Reference in New Issue
Block a user