forked from brave/browser-laptop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a way to view TLS certificates when error
Fix brave#1057
- Loading branch information
Showing
6 changed files
with
171 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
(function () { | ||
const ipcRenderer = chrome.ipc | ||
window.addEventListener('dispatch-action', (e) => { | ||
ipcRenderer.send('dispatch-action', e.detail) | ||
}) | ||
window.addEventListener('change-setting', (e) => { | ||
ipcRenderer.send('change-setting', e.detail.key, e.detail.value) | ||
}) | ||
window.addEventListener('change-site-setting', (e) => { | ||
ipcRenderer.send('change-site-setting', e.detail.hostPattern, e.detail.key, e.detail.value) | ||
}) | ||
window.addEventListener('cert-error-accepted', (e) => { | ||
ipcRenderer.send('cert-error-accepted', e.detail.url) | ||
}) | ||
window.addEventListener('get-cert-error-detail', (e) => { | ||
ipcRenderer.send('get-cert-error-detail', e.detail.url) | ||
}) | ||
window.addEventListener('new-frame', (e) => { | ||
ipcRenderer.sendToHost('new-frame', e.detail.frameOpts, e.detail.openInForeground) | ||
}) | ||
window.addEventListener('context-menu-opened', (e) => { | ||
ipcRenderer.sendToHost('context-menu-opened', e.detail.nodeProps, e.detail.contextMenuType) | ||
}) | ||
window.addEventListener('move-site', (e) => { | ||
ipcRenderer.send('move-site', e.detail.sourceDetail, e.detail.destinationDetail, e.detail.prepend, e.detail.destinationIsParent) | ||
}) | ||
window.addEventListener('open-download-path', (e) => { | ||
ipcRenderer.send('open-download-path', e.detail.download) | ||
}) | ||
window.addEventListener('decrypt-password', (e) => { | ||
ipcRenderer.send('decrypt-password', e.detail.encryptedPassword, e.detail.authTag, e.detail.iv, e.detail.id) | ||
}) | ||
window.addEventListener('set-clipboard', (e) => { | ||
ipcRenderer.send('set-clipboard', e.detail) | ||
}) | ||
window.addEventListener('show-notification', (e) => { | ||
ipcRenderer.send('show-notification', e.detail) | ||
}) | ||
window.addEventListener('set-resource-enabled', (e) => { | ||
ipcRenderer.send('set-resource-enabled', e.detail.resourceName, e.detail.enabled) | ||
}) | ||
window.addEventListener('delete-password', (e) => { | ||
ipcRenderer.send('delete-password', e.detail) | ||
}) | ||
window.addEventListener('delete-password-site', (e) => { | ||
ipcRenderer.send('delete-password-site', e.detail) | ||
}) | ||
window.addEventListener('clear-passwords', (e) => { | ||
ipcRenderer.send('clear-passwords') | ||
}) | ||
window.addEventListener('request-language', (e) => { | ||
ipcRenderer.send('request-language') | ||
}) | ||
window.addEventListener('check-flash-installed', (e) => { | ||
ipcRenderer.send('check-flash-installed') | ||
}) | ||
}).apply(this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters