summaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/persistent-storage-controller.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-04-03 13:32:53 -0400
committerGitHub <noreply@github.com>2021-04-03 13:32:53 -0400
commit0e26d9a667e2794346c8969a24d389eb45208df1 (patch)
tree815bd07d8216c1b9b88c8f7d6f341ab5259b6fd1 /ext/js/pages/settings/persistent-storage-controller.js
parenta9fe2d03b22a0dd5760019f1325a7a86ebb07b85 (diff)
Remove code for old settings page (#1588)
Diffstat (limited to 'ext/js/pages/settings/persistent-storage-controller.js')
-rw-r--r--ext/js/pages/settings/persistent-storage-controller.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/ext/js/pages/settings/persistent-storage-controller.js b/ext/js/pages/settings/persistent-storage-controller.js
index e46dbe87..d4d38eda 100644
--- a/ext/js/pages/settings/persistent-storage-controller.js
+++ b/ext/js/pages/settings/persistent-storage-controller.js
@@ -24,12 +24,6 @@ class PersistentStorageController {
this._persistentStorageCheckbox = document.querySelector('#storage-persistent-checkbox');
this._persistentStorageCheckbox.addEventListener('change', this._onPersistentStorageCheckboxChange.bind(this), false);
- const button = document.querySelector('#storage-persistent-button');
- if (button !== null) {
- button.hidden = false;
- button.addEventListener('click', this._onPersistStorageButtonClick.bind(this), false);
- }
-
if (!this._isPersistentStorageSupported()) { return; }
const info = document.querySelector('#storage-persistent-info');
@@ -60,13 +54,6 @@ class PersistentStorageController {
}
}
- _onPersistStorageButtonClick() {
- const {checked} = this._persistentStorageCheckbox;
- if (checked) { return; }
- this._persistentStorageCheckbox.checked = !checked;
- this._persistentStorageCheckbox.dispatchEvent(new Event('change'));
- }
-
async _attemptPersistStorage() {
let isStoragePeristent = false;
try {