From d3807d88ecf40b2c37ed31d823af038a091ffca0 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 20 Aug 2022 12:53:22 -0400 Subject: ArrayBufferUtil (#2215) * Rename StringUtil to ArrayBufferUtil * Update docs * Rename file string-util.js to array-buffer-util.js --- ext/js/pages/settings/backup-controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/pages') diff --git a/ext/js/pages/settings/backup-controller.js b/ext/js/pages/settings/backup-controller.js index ba36a828..a232ce34 100644 --- a/ext/js/pages/settings/backup-controller.js +++ b/ext/js/pages/settings/backup-controller.js @@ -16,9 +16,9 @@ */ /* global + * ArrayBufferUtil * DictionaryController * OptionsUtil - * StringUtil */ class BackupController { @@ -319,7 +319,7 @@ class BackupController { } async _importSettingsFile(file) { - const dataString = StringUtil.arrayBufferUtf8Decode(await this._readFileArrayBuffer(file)); + const dataString = ArrayBufferUtil.arrayBufferUtf8Decode(await this._readFileArrayBuffer(file)); const data = JSON.parse(dataString); // Type check -- cgit v1.2.3