devtron icon indicating copy to clipboard operation
devtron copied to clipboard

Deprecated function warnings

Open alejandroclaro opened this issue 4 years ago • 3 comments

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.

alejandroclaro avatar May 25 '20 11:05 alejandroclaro

i change what you said but it doest work same error with the new name changed

cSarcasme avatar Jun 06 '20 15:06 cSarcasme

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

image

SilvaQ avatar Oct 20 '20 08:10 SilvaQ

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

image

react dev tools extentions work is well with the same way: image

SilvaQ avatar Oct 20 '20 09:10 SilvaQ