Skip to content

Commit

Permalink
Added Capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeeechu committed Oct 26, 2022
1 parent e3a18cb commit abdf377
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ let details = 'In main menu';
let staterpc;
let playON;


function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}

function createWindow () {


Expand Down Expand Up @@ -72,7 +77,7 @@ function createWindow () {
let dtemp2 = dtemp.replaceAll('-', " ")
let d = dtemp2.split("episode")[0];
console.log(d);
details = "Watching: " + d;
details = "Watching: " + capitalize(d);
let epNum = dtemp2.split('episode').splice(1).join('episode')
console.log(epNum)
staterpc = "Ep " + epNum
Expand Down

0 comments on commit abdf377

Please sign in to comment.