File tree Expand file tree Collapse file tree
Lightcord/modules/discord_desktop_core/core/app/tabs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,16 +98,8 @@ const syntx = '://'; // DO NOT CHANGE!
9898const chngr = ':' ; // DO NOT CHANGE!
9999const ap = '/app' ; // DO NOT CHANGE!
100100const 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" ) ) )
You can’t perform that action at this time.
0 commit comments