Skip to content

Commit

Permalink
refact: clean code converted var to let and const
Browse files Browse the repository at this point in the history
  • Loading branch information
heliomarpm committed Jul 3, 2024
1 parent 4d83b48 commit 32efdd2
Show file tree
Hide file tree
Showing 7 changed files with 148 additions and 202 deletions.
341 changes: 141 additions & 200 deletions app/app.js

Large diffs are not rendered by default.

File renamed without changes.
5 changes: 5 additions & 0 deletions app/helpers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const Settings = require("./settings");
const ui = require("./ui");
const utils = require("./utils");

module.exports = { Settings, ui, utils, }
2 changes: 1 addition & 1 deletion app/js/settings.js → app/helpers/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const Settings = (() => {
},
/** @type {DownloadHistory} */
get downloadHistory() {
return this.get("downloadedHistory");
return this.get("downloadedHistory", []);
},
/** @type {DownloadHistory} */
set downloadHistory(value) {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/renderer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict"

const Sentry = require('@sentry/electron');
const Gettings = require('./js/settings.js')
const Gettings = require('./helpers/settings.js')
const { version: appVersion, vars: pkgVars } = require('../package.json');

let featToggle = {};
Expand Down

0 comments on commit 32efdd2

Please sign in to comment.