Updated: Release notes (#92)

This commit is contained in:
nobody 2020-09-06 11:26:09 +02:00
parent 3fcae3c54d
commit 0491b1cfb9
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 28 additions and 1 deletions

View File

@ -18,11 +18,17 @@
<body>
<img src="../images/logo.svg" alt="Decentraleyes" class="logo"/>
<div class="container">
<!-- ********************************************************************************
TODO: Remove me in v2.4.1
-->
<div class="notice subtle-hint important">
<h1 style="font-weight: bold;">Please notice</h1>
<p><strong>Do you use Firefox/Chromium Sync or your own sync server?</strong> If not, you can ignore the following. </p>
<p><strong>1.) Do you use Firefox/Chromium Sync or your own sync server?</strong></p>
<p>In LocalCDN v2.4.0 the default storage type has been changed from <em>sync</em> to <em>local</em>. If you want to change this, you can do this in the settings. Please recognize that not all data are synced. More information can be found in the <a href="../help/help.html#sync">FAQs</a></p>
<p><strong>2.) Extension settings</strong></p>
<p>Your extension settings should be automatically transferred from <em>sync</em> to <em>local</em>, but in some cases the migration may fail. If you want, you can <input type="button" id="export" value="export"/> your extension settings to a file and import them on the options page.</p>
</div>
<!-- ******************************************************************************** -->
<h1>Release notes</h1>
<div class="notice">
<div class="subtle-hint">

View File

@ -39,6 +39,11 @@ updates._openHistoryReleaseNotes = function () {
};
updates._onDocumentLoaded = function () {
// ********************************************************************************
// TODO: Remove me in v2.4.1
document.getElementById('export').addEventListener('click', updates._export);
// ********************************************************************************
document.getElementById('generate-ublock-rules').checked = false;
document.getElementById('generate-umatrix-rules').checked = false;
@ -61,5 +66,21 @@ updates._onDocumentLoaded = function () {
document.getElementById('generator-section').style.display = 'block';
}
};
// ********************************************************************************
// TODO: Remove me in v2.4.1
updates._export = function () {
let filename = new Date().toISOString();
filename = filename.substring(0, 10) + '_localcdn_backup.txt';
chrome.storage.sync.get(null, function (items) {
let element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(JSON.stringify(items, null, ' ')));
element.setAttribute('download', filename);
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
});
};
// ********************************************************************************
document.addEventListener('DOMContentLoaded', updates._onDocumentLoaded);