-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
246 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ipcMain } from "electron"; | ||
import "./plugins"; | ||
import "./themes"; | ||
import "./quick-css"; | ||
import type { RepluggedWebContents } from "../../types"; | ||
|
||
ipcMain.on("REPLUGGED_GET_DISCORD_PRELOAD", (event) => { | ||
console.log(event); | ||
event.returnValue = (event.sender as RepluggedWebContents).originalPreload; | ||
}); | ||
// Handle requesting renderer code |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { readFile, writeFile } from "fs/promises"; | ||
import { join } from "path"; | ||
import { ipcMain } from "electron"; | ||
|
||
const cssPath = join(__dirname, "../../../settings/quickcss/main.css"); | ||
|
||
ipcMain.handle("REPLUGGED_GET_QUICK_CSS", () => | ||
readFile(cssPath, { encoding: "utf-8" }) | ||
); | ||
ipcMain.on("REPLUGGED_SAVE_QUICK_CSS", (_, css) => | ||
writeFile(cssPath, css, { encoding: "utf-8" }) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare var replugged: {}; | ||
window.replugged = {}; |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.