Skip to content

Commit 26514db

Browse files
authored
Update index.js
1 parent 08f6c0c commit 26514db

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

  • Lightcord/modules/discord_desktop_core/core/app/tabs

Lightcord/modules/discord_desktop_core/core/app/tabs/index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,8 @@ const syntx = '://'; // DO NOT CHANGE!
9898
const chngr = ':'; // DO NOT CHANGE!
9999
const ap = '/app'; // DO NOT CHANGE!
100100
const LH = 'localhost'; // Discord.com Patch, change if localhost doesn't work (127.0.0.1), Note you still need the local server hoster!
101-
const PORT1 = '80'; // Port 80
102-
const PORT2 = '443'; // Port 443
103-
const PORT3 = '2022'; // DO NOT CHANGE!
104-
if (fs.existsSync('/LC'+PORT1)) {
105-
webview.src = PROT0 + syntx + IPADR + chngr + PORT1 + ap;
106-
} else if (fs.existsSync('/LC'+PORT2)) {
107-
webview.src = PROT0 + syntx + IPADR + chngr + PORT2 + ap;
108-
} else {
101+
const PORT = '2022'; // Port Number
109102
webview.src = PROT0 + syntx + LH + chngr + PORT3 + ap;
110-
}
111103
webview.classList.add("discord-webview")
112104
webview.classList.add("webview-active")
113105
webview.setAttribute("preload", pathToFileURL(join(__dirname, "../tabPreload.js")))

0 commit comments

Comments
 (0)