diff --git a/app/utils/to-electron-background-color.ts b/app/utils/to-electron-background-color.ts index 1a526534099f..fc4a97991192 100644 --- a/app/utils/to-electron-background-color.ts +++ b/app/utils/to-electron-background-color.ts @@ -13,5 +13,5 @@ export default (bgColor: string) => { // http://stackoverflow.com/a/11019879/1202488 const alphaHex = Math.round(color.alpha() * 255).toString(16); - return `#${alphaHex}${color.hex().toString().substr(1)}`; + return `#${alphaHex}${color.hex().toString().slice(1)}`; };