@@ -111,15 +111,15 @@ handleIpc(IPC_CHANNELS.LOG, (e, type, ...args) => {
111111} ) ;
112112
113113handleIpc ( IPC_CHANNELS . OPEN_URL , ( e , url ) => {
114- const allowsd_urls = [
114+ const allowed_urls = [
115115 / s t e a m : \/ \/ .* / ,
116116 / m s - s e t t i n g s : n e t w o r k $ / ,
117117 / h t t p s : \/ \/ .* \. s l i m e v r \. d e v .* / ,
118118 / h t t p s : \/ \/ g i t h u b \. c o m \/ .* / ,
119119 / h t t p s : \/ \/ d i s c o r d \. g g \/ s l i m e v r $ / ,
120120 ] ;
121- if ( allowsd_urls . find ( ( a ) => url . match ( a ) ) ) open ( url ) ;
122- else logger . error ( { url } , 'trying to open non allowed url ' ) ;
121+ if ( allowed_urls . find ( ( a ) => url . match ( a ) ) ) open ( url ) ;
122+ else logger . error ( { url } , 'attempted to open non-whitelisted URL ' ) ;
123123} ) ;
124124
125125handleIpc ( IPC_CHANNELS . STORAGE , async ( e , { type, method, key, value } ) => {
@@ -336,7 +336,7 @@ const isServerRunning = async () => !await isPortAvailable(21110)
336336
337337const spawnServer = async ( ) => {
338338 if ( options . skipServerIfRunning && await isServerRunning ( ) ) {
339- logger . info ( { skipServerIfRunning : options . skipServerIfRunning } , 'Server alredy running, skipping' ) ;
339+ logger . info ( { skipServerIfRunning : options . skipServerIfRunning } , 'Server is already running, skipping server start ' ) ;
340340 return ;
341341 }
342342
@@ -357,7 +357,7 @@ const spawnServer = async () => {
357357 return ;
358358 }
359359
360- logger . info ( { serverJar } , 'found server jar' ) ;
360+ logger . info ( { javaBin , serverJar } , 'Found Java and server jar' ) ;
361361
362362 const process = spawn ( javaBin , [ '-Xmx128M' , '-jar' , serverJar , 'run' ] ) ;
363363
0 commit comments