Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
Fix resource getting
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed May 8, 2022
1 parent 60569bf commit f2cdab0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/js/gcdownloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ async function downloadGC(branch) {

async function downloadResources() {
const config = await getCfg()
const serverFolderFixed = config.serverFolder.match(/.*\\|.*\//g, '')[0].replace(/\//g, '\\')
let serverFolderFixed = config.serverFolder.match(/.*\\|.*\//g, '')[0].replace(/\//g, '\\')

// Remove trailing slash, it's important here
serverFolderFixed = serverFolderFixed.endsWith('\\') ? serverFolderFixed.slice(0, -1) : serverFolderFixed

debug.log('Server folder fixed: ' + serverFolderFixed)

Expand Down

0 comments on commit f2cdab0

Please sign in to comment.