feat: refactor plugin utils (#1391)

This commit is contained in:
JellyBrick
2023-11-09 11:06:06 +09:00
committed by GitHub
parent 269352af97
commit 47cccbce7c
31 changed files with 68 additions and 65 deletions

View File

@ -2,7 +2,7 @@ import { BrowserWindow } from 'electron';
import style from './style.css';
import { injectCSS } from '../utils';
import { injectCSS } from '../utils/main';
export function handle(win: BrowserWindow) {
injectCSS(win.webContents, style, () => {

View File

@ -1,7 +1,7 @@
import forwardHTML from './templates/forward.html?raw';
import backHTML from './templates/back.html?raw';
import { ElementFromHtml } from '../utils-renderer';
import { ElementFromHtml } from '../utils/renderer';
export function run() {
window.ipcRenderer.on('navigation-css-ready', () => {