Fix DiscordDark theme
This commit is contained in:
parent
dd20bdea75
commit
baaa67061a
|
@ -1,12 +0,0 @@
|
|||
/**
|
||||
* @name Dark Discord
|
||||
* @version 1.0
|
||||
* @description An actual dark mode for discord.
|
||||
* @source https://github.com/zzzmario/dark-discord
|
||||
* @authorId 583062692596547585
|
||||
* @author mario
|
||||
* @donate https://paypal.me/zzzmario
|
||||
* @invite sSeBYs
|
||||
**/
|
||||
|
||||
@import url(https://cdn.jsdelivr.net/gh/hellbound1337/dark-discord/src/source.min.css);
|
|
@ -209,9 +209,13 @@ async function privateInit(){
|
|||
/** Downloads Basic Themes to guide user and showcase features */
|
||||
|
||||
/** Discord Dark */
|
||||
const DiscordDarkPath = path.join(themePath, "DiscordDark.theme.css")
|
||||
const themeContent = fs.readFileSync(path.join(__dirname, "assets", "DiscordDark.theme.css"), "utf8")
|
||||
fs.writeFileSync(DiscordDarkPath, themeContent, "utf8")
|
||||
const GlasscordExamplePath = path.join(themePath, "DarkDiscord.theme.css")
|
||||
fetch("https://raw.githubusercontent.com/hellbound1337/dark-discord/master/DarkDiscord.theme.css")
|
||||
.then(async res => {
|
||||
if(res.status !== 200)return
|
||||
const content = await res.buffer()
|
||||
fs.writeFileSync(GlasscordExamplePath, content)
|
||||
})
|
||||
|
||||
/** Glasscord Example */
|
||||
const GlasscordExamplePath = path.join(themePath, "glasscord_example.theme.css")
|
||||
|
|
Loading…
Reference in New Issue