Skip to content

Commit

Permalink
Nit fixes to older PR code.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigyank committed Jan 7, 2021
1 parent d77eaed commit 5544153
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 1 addition & 2 deletions app/renderer/js/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ServerManagerView {
$sidebar: Element;
$fullscreenPopup: Element;
$fullscreenEscapeKey: string;
$sortableList: any;
$sortableList: Sortable;
loading: Set<string>;
activeTabIndex: number;
servers: DomainUtil.ServerConf[];
Expand Down Expand Up @@ -244,7 +244,6 @@ class ServerManagerView {
tabElements.forEach((element, index) => {
const oldIndex = Number(element.getAttribute('data-tab-id')) % this.servers.length;
newServers.push(this.servers[oldIndex]);
// TODO: Change this to read data from in-memory store or DomainUtil.
(element as HTMLElement).dataset.tabId = index.toString();
});
this.servers = newServers;
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
"i18n": "^0.13.2",
"iso-639-1": "^2.1.4",
"node-json-db": "^1.1.0",
"semver": "^7.3.4"
"semver": "^7.3.4",
"sortablejs": "^1.10.2"
},
"devDependencies": {
"@types/adm-zip": "^0.4.33",
Expand Down
7 changes: 0 additions & 7 deletions typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,3 @@ interface ElectronBridge {
set_send_notification_reply_message_supported: (value: boolean) => void;
decrypt_clipboard: (version: number) => ClipboardDecrypter;
}

interface Domain {
icon: string;
url: string;
alias: string;
ignoreCerts: boolean;
}

0 comments on commit 5544153

Please sign in to comment.