aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/nightlyBuilds
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/nightlyBuilds')
-rw-r--r--src/features/nightlyBuilds/index.ts (renamed from src/features/nightlyBuilds/index.js)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/features/nightlyBuilds/index.js b/src/features/nightlyBuilds/index.ts
index 89bcb5cb3..14afbaf1b 100644
--- a/src/features/nightlyBuilds/index.js
+++ b/src/features/nightlyBuilds/index.ts
@@ -14,26 +14,26 @@ export default function initialize() {
14 } 14 }
15 15
16 function toggleFeature() { 16 function toggleFeature() {
17 if (window.ferdi.stores.settings.app.nightly) { 17 if (window['ferdi'].stores.settings.app.nightly) {
18 window.ferdi.actions.settings.update({ 18 window['ferdi'].actions.settings.update({
19 type: 'app', 19 type: 'app',
20 data: { 20 data: {
21 nightly: false, 21 nightly: false,
22 }, 22 },
23 }); 23 });
24 window.ferdi.actions.user.update({ 24 window['ferdi'].actions.user.update({
25 userData: { 25 userData: {
26 nightly: false, 26 nightly: false,
27 }, 27 },
28 }); 28 });
29 } else { 29 } else {
30 // We need to close the settings, otherwise the modal will be drawn under the settings window 30 // We need to close the settings, otherwise the modal will be drawn under the settings window
31 window.ferdi.actions.ui.closeSettings(); 31 window['ferdi'].actions.ui.closeSettings();
32 showModal(); 32 showModal();
33 } 33 }
34 } 34 }
35 35
36 window.ferdi.features.nightlyBuilds = { 36 window['ferdi'].features.nightlyBuilds = {
37 state, 37 state,
38 showModal, 38 showModal,
39 toggleFeature, 39 toggleFeature,