devtron
devtron copied to clipboard
Deprecated function warnings
Some electron function that are being used by Devtron are now deprecated and will be removed:
(electron) 'BrowserWindow.getDevToolsExtensions' is deprecated and will be removed. Please use 'session.getAllExtensions' instead. (electron) 'BrowserWindow.addDevToolsExtension' is deprecated and will be removed. Please use 'session.loadExtension' instead.\
Please prepare the project for these chages.
i change what you said but it doest work same error with the new name changed
same problem.
i use :
app.on("ready", async () => {
await session.defaultSession.loadExtension(
path.join(__dirname, "../extentions/devtron")
);
// .then(({ id }) => console.log("loaded", id));
// Note that in order to use the React DevTools extension, you'll need to
// download and unzip a copy of the extension.
});
the extention report manifest error, so i fix the menifest:
{
"name": "devtron",
"manifest_version": 2,
"version": "2",
"devtools_page": "static/devtron.html",
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["out/browser-globals.js"]
}
]
}
add manifest_version and matches field for it ,so now load the extention is successful but not work
same problem.
i use :
app.on("ready", async () => { await session.defaultSession.loadExtension( path.join(__dirname, "../extentions/devtron") ); // .then(({ id }) => console.log("loaded", id)); // Note that in order to use the React DevTools extension, you'll need to // download and unzip a copy of the extension. });
the extention report manifest error, so i fix the menifest:
{ "name": "devtron", "manifest_version": 2, "version": "2", "devtools_page": "static/devtron.html", "content_scripts": [ { "matches": ["<all_urls>"], "js": ["out/browser-globals.js"] } ] }
add manifest_version and matches field for it ,so now load the extention is successful but not work
react dev tools extentions work is well with the same way: