Update React developer tools extension
This commit is contained in:
parent
fbba0a8c21
commit
0961200441
|
@ -38,7 +38,7 @@
|
|||
"id": "debugger-keybind",
|
||||
"type": "keybind",
|
||||
"text": "Debugger keybind",
|
||||
"hint": "Open developer tools and pause"
|
||||
"hint": "Open developer tools and pause."
|
||||
},
|
||||
{
|
||||
"id": "ignore-content-manager-errors",
|
||||
|
@ -51,14 +51,14 @@
|
|||
"id": "react-devtools",
|
||||
"type": "bool",
|
||||
"text": "React Developer Tools",
|
||||
"hint": "Place extension in ext/extensions/rdt",
|
||||
"hint": "Place extension in ext/extensions/rdt. You can download the extension from the Chrome Web Store or from https://github.com/facebook/react-devtools/releases/download/3.4.2/chrome-extension.zip.",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"id": "vue-devtools",
|
||||
"type": "bool",
|
||||
"text": "Vue Developer Tools",
|
||||
"hint": "Place extension in ext/extensions/vdt",
|
||||
"hint": "Place extension in ext/extensions/vdt. You can download the extension from the Chrome Web Store.",
|
||||
"value": false
|
||||
}
|
||||
]
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
],
|
||||
"style-src": [
|
||||
"https://fonts.googleapis.com"
|
||||
],
|
||||
],
|
||||
"script-src": [
|
||||
"'sha256-fSHKdpQGCHaIqWP3SpJOuUHrLp49jy4dWHzZ/RBJ/p4='",
|
||||
"'sha256-X/Vxe0xwD5NYeow8fOCVjqJUWNTO7SDq8P9C4N88/cM='",
|
||||
"'sha256-VFJcfKY5B3EBkFDgQnv3CozPwBlZcxwssfLVWlPFfZU='",
|
||||
"'sha256-VzDmLZ4PxPkOS/KY7ITzLQsSWhfCnvUrNculcj8UNgE='",
|
||||
"'sha256-l6K+77Z1cmldR9gIvaVWlboF/zr5MXCQHcsEHfnr5TU='"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
React Devtools: sha256-fSHKdpQGCHaIqWP3SpJOuUHrLp49jy4dWHzZ/RBJ/p4=
|
||||
React Devtools [v3.4.2](https://github.com/facebook/react-devtools/releases/tag/3.4.2):
|
||||
sha256-X/Vxe0xwD5NYeow8fOCVjqJUWNTO7SDq8P9C4N88/cM=
|
||||
|
||||
Vue Devtools: sha256-VFJcfKY5B3EBkFDgQnv3CozPwBlZcxwssfLVWlPFfZU=
|
||||
Vue Detector: sha256-l6K+77Z1cmldR9gIvaVWlboF/zr5MXCQHcsEHfnr5TU=
|
||||
|
|
|
@ -241,12 +241,6 @@ export class BetterDiscord {
|
|||
async init() {
|
||||
console.log('[BetterDiscord] init');
|
||||
|
||||
// Electron 5.0.0-beta.2 moves this - previously it was in webFrame (renderer)
|
||||
// https://github.com/electron/electron/pull/16625
|
||||
if (protocol.registerSchemesAsPrivileged) {
|
||||
protocol.registerSchemesAsPrivileged([{ scheme: 'chrome-extension' }]);
|
||||
}
|
||||
|
||||
await this.ensureDirectories();
|
||||
await this.waitForWindowUtils();
|
||||
|
||||
|
|
|
@ -17,12 +17,6 @@ import electron, { ipcRenderer } from 'electron';
|
|||
|
||||
console.log('[BetterDiscord|Sparkplug]');
|
||||
|
||||
// Electron 5.0.0-beta.2 moves this to protocol (main)
|
||||
// https://github.com/electron/electron/pull/16625
|
||||
if (electron.webFrame.registerURLSchemeAsPrivileged) {
|
||||
electron.webFrame.registerURLSchemeAsPrivileged('chrome-extension');
|
||||
}
|
||||
|
||||
const currentWindow = electron.remote.getCurrentWindow();
|
||||
|
||||
if (currentWindow.__bd_preload) {
|
||||
|
|
Loading…
Reference in New Issue