aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-05-24 13:56:46 -0400
committerGitHub <noreply@github.com>2020-05-24 13:56:46 -0400
commit13f57cccba5a29ff9e270a3fc2b2d7fee6e46b51 (patch)
tree6364e4cf5fc499e412a96d67b20e997d5d773267 /ext/bg/js/util.js
parent66e1185686f98f1cc4493298b5b1d4e0be7d826a (diff)
Settings backup refactor (#551)
* Update backup.js to be a class * Move utilReadFileArrayBuffer
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 8f86e47a..edc19c6e 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -65,12 +65,3 @@ function utilBackend() {
}
return backend;
}
-
-function utilReadFileArrayBuffer(file) {
- return new Promise((resolve, reject) => {
- const reader = new FileReader();
- reader.onload = () => resolve(reader.result);
- reader.onerror = () => reject(reader.error);
- reader.readAsArrayBuffer(file);
- });
-}