diff --git a/src/getFileContents.ts b/src/getFileContents.ts index 1f64ac2..39ef6c0 100644 --- a/src/getFileContents.ts +++ b/src/getFileContents.ts @@ -1,8 +1,6 @@ import * as http from 'http'; -export const getFileContents: () => Promise = () => new Promise((resolve, reject) => { - const product = 'assets_swtor_de_de'; - +export const getFileContents: (product?: string) => Promise = (product: string = 'assets_swtor_de_de') => new Promise((resolve, reject) => { //Generate URL const url = `http://cdn-patch.swtor.com/patch/${product}/${product}_-1to0.solidpkg`; const path = `/patch/${product}/${product}_-1to0.solidpkg`;