mirror of
https://github.com/ION606/browser-chromium.git
synced 2026-05-14 22:26:56 +00:00
added permissions for website
This commit is contained in:
+3
-2
@@ -71,7 +71,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
||||
onReceive: (channel, func) => {
|
||||
ipcRenderer.on(channel, (event, ...args) => func(...args));
|
||||
},
|
||||
checkperms: (sitehostname) => ipcRenderer.send('get-site-perms', sitehostname)
|
||||
checkperms: (sitehostname) => ipcRenderer.send('get-site-perms', sitehostname),
|
||||
promptperms: () => ipcRenderer.send('prompt-terms', window.location.hostname)
|
||||
});
|
||||
|
||||
// ipcRenderer.on('tab-opened', (ev, id) => {
|
||||
@@ -87,7 +88,7 @@ contextBridge.exposeInMainWorld('tabAPI', {
|
||||
addTab: (url) => ipcRenderer.send('add-tab', url || 'about:blank')
|
||||
});
|
||||
|
||||
const load = () => {
|
||||
const load = async () => {
|
||||
console.info("PRELOAD LOADED!");
|
||||
|
||||
if (window.location.origin === 'lite.duckduckgo.com') {
|
||||
|
||||
Reference in New Issue
Block a user