mirror of
https://github.com/ION606/browser-chromium.git
synced 2026-05-14 22:26:56 +00:00
backup
This commit is contained in:
@@ -24,6 +24,7 @@ export default function init(customSession) {
|
||||
ipcMain.on('tab-open', (e, id) => tabModule.openTab(e, id, customSession));
|
||||
ipcMain.on('tab-close', (e, id) => tabModule.closeTab(e, id, customSession));
|
||||
ipcMain.on('tab-new', (e, id, url) => tabModule.addTab(e, id, customSession, url));
|
||||
ipcMain.on('add-tab-external', (e, url) => tabModule.addTabExternal(url, customSession));
|
||||
|
||||
ipcMain.on('set-site-perms', (e, sitehostname, id, value) => setSitePerms(e, sitehostname, id, value));
|
||||
ipcMain.on('set-site-perms-all', (e, sitehostname, id, value) => setSitePerms(e, sitehostname, id, value, true));
|
||||
|
||||
+3
-1
@@ -4,7 +4,8 @@ import dns from 'dns';
|
||||
import path from 'path';
|
||||
|
||||
const history = (fs.readFileSync(path.resolve(import.meta.dirname, '../CSS', 'history.css')).toString()),
|
||||
tabs = (fs.readFileSync(path.resolve(import.meta.dirname, '../CSS', 'tabs.css')).toString());
|
||||
tabs = (fs.readFileSync(path.resolve(import.meta.dirname, '../CSS', 'tabs.css')).toString()),
|
||||
contextmenu = (fs.readFileSync(path.resolve(import.meta.dirname, '../CSS', 'style.css')).toString());
|
||||
|
||||
export const isValidURL = (u) => {
|
||||
try { return new URL(u); }
|
||||
@@ -39,6 +40,7 @@ export async function addEl(window, hostname) {
|
||||
|
||||
window.webContents.insertCSS(history);
|
||||
window.webContents.insertCSS(tabs);
|
||||
window.webContents.insertCSS(contextmenu);
|
||||
|
||||
// window.safdocument.addEventListener('')eHTML.addStylesheet(srccontent, `https://ion-local.${window.location.hostname}/${src}`);
|
||||
// window.safeHTML.addStylesheet(history, `https://ion-local.${window.location.hostname}/history.css`);
|
||||
|
||||
Reference in New Issue
Block a user