From 43f0b4e4e8ec5e91a416f3cef241a9a3e94a9a96 Mon Sep 17 00:00:00 2001 From: jamesmaa Date: Tue, 29 Oct 2024 12:14:18 -0700 Subject: [PATCH] Add it back in with relative pathing --- ext/js/pages/settings/settings-controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/js/pages/settings/settings-controller.js b/ext/js/pages/settings/settings-controller.js index bbd6e9f34..6f49482ca 100644 --- a/ext/js/pages/settings/settings-controller.js +++ b/ext/js/pages/settings/settings-controller.js @@ -18,6 +18,7 @@ import {EventDispatcher} from '../../core/event-dispatcher.js'; import {EventListenerCollection} from '../../core/event-listener-collection.js'; +import {fetchJson} from '../../core/fetch-utilities.js'; import {isObjectNotArray} from '../../core/object-utilities.js'; import {generateId} from '../../core/utilities.js'; import {OptionsUtil} from '../../data/options-util.js'; @@ -77,7 +78,7 @@ export class SettingsController extends EventDispatcher { /** */ async prepare() { await this._templates.loadFromFiles(['/templates-settings.html']); - // this._recommendedSettingsByLanguage = await fetchJson('/data/recommended-settings.json'); + this._recommendedSettingsByLanguage = await fetchJson('../../data/recommended-settings.json'); this._application.on('optionsUpdated', this._onOptionsUpdated.bind(this)); if (this._canObservePermissionsChanges()) { chrome.permissions.onAdded.addListener(this._onPermissionsChanged.bind(this));