Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

Commit b097bd3

Browse files
committed
remove default button outline
1 parent 7d4284d commit b097bd3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/renderer/main.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ function createWebView() {
8282

8383
webview.addEventListener('dom-ready', () => {
8484
// Insert custom css
85-
webview.insertCSS(fs.readFileSync(configDir('custom.css'), 'utf8'))
85+
const css = `
86+
._app button:focus {
87+
outline: none;
88+
}
89+
`
90+
webview.insertCSS(css + fs.readFileSync(configDir('custom.css'), 'utf8'))
8691
webview.executeJavaScript(fs.readFileSync(configDir('custom.js'), 'utf8'))
8792
webview.focus()
8893
// Add context menus

0 commit comments

Comments
 (0)