aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/settings.html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-11 19:08:54 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-11 19:44:13 -0400
commit6014fe5344cd22ff783af18db2b567e2cd7ef819 (patch)
tree7ffe9a3de33a3079db2084cedbe02ce52d36c721 /ext/bg/settings.html
parent2bfc7e39725420a2a1a89d968b0a1f27687f70ea (diff)
Add support for persistent storage
Diffstat (limited to 'ext/bg/settings.html')
-rw-r--r--ext/bg/settings.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/bg/settings.html b/ext/bg/settings.html
index e4710283..19dee8b3 100644
--- a/ext/bg/settings.html
+++ b/ext/bg/settings.html
@@ -395,12 +395,20 @@
</div>
</div>
- <div id="storage-info" class="storage-hidden">
+ <div id="storage-info">
<div>
<img src="/mixed/img/spinner.gif" class="pull-right" id="storage-spinner" />
<h3>Storage</h3>
</div>
+ <div id="storage-persist-info" class="storage-hidden">
+ <p class="help-block">
+ Web browsers may sometimes clear stored data if the device is running low on storage space.
+ This can result in the stored dictionary data being deleted unexpectedly, causing Yomichan to stop working for no apparent reason.
+ In order to prevent this, persistent storage must be enable by clicking the "Persistent Storage" button below.
+ </p>
+ </div>
+
<div id="storage-use" class="storage-hidden">
<p class="help-block">
Yomichan is using approximately <strong id="storage-usage"></strong> of <strong id="storage-quota"></strong>.
@@ -425,7 +433,8 @@
</div></div>
<div>
- <button class="btn btn-default" id="storage-refresh">Refresh</button>
+ <button class="btn btn-default" id="storage-refresh"><span class="btn-inner-middle">Refresh</span></button>
+ <button class="btn btn-default storage-hidden ignore-form-changes" id="storage-persist-button"><span class="storage-persist-button-inner"><input type="checkbox" class="btn-inner-middle" id="storage-persist-button-checkbox" readonly /><span class="btn-inner-middle">Persistent Storage</span></span></button>
</div>
</div>