mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
19 lines
596 B
JavaScript
19 lines
596 B
JavaScript
const customTitlebar = require('custom-electron-titlebar')
|
|
const electronLocalshortcut = require("electron-localshortcut");
|
|
const { remote } = require("electron");
|
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
new customTitlebar.Titlebar({
|
|
backgroundColor: customTitlebar.Color.fromHex("#2C2F33"),
|
|
});
|
|
|
|
|
|
})
|
|
const currentWindow = remote.getCurrentWindow();
|
|
electronLocalshortcut.register(currentWindow, "F5", () => {
|
|
location.reload();
|
|
});
|
|
electronLocalshortcut.register(currentWindow, "F12", () => {
|
|
currentWindow.webContents.openDevTools();
|
|
});
|
|
require("./utils/capturer.js")
|