MicrosoftDocs / edge-developer

Developer documentation for Edge.
https://learn.microsoft.com/microsoft-edge/developer/
Creative Commons Attribution 4.0 International
377 stars 504 forks source link

I think the page is outdated #3139

Closed madhaven closed 1 month ago

madhaven commented 2 months ago

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AB#50475498

captainbrosset commented 2 months ago

Thanks for filing this issue. I've added it to our backlog. We'll take a look and try to make the page clearer/more up to date.

captainbrosset commented 1 month ago
  • The documentation talks about a manifest file but that exists only in the dist folder. That does not make sense.

The manifest file is correctly linked to from the docs: https://github.com/MicrosoftEdge/Demos/blob/main/1DIV/dist/manifest.json Indeed, it's in the dist folder, because it's a static file that doesn't require to be built with WebPack, like the other JS files that are in the src folder.

Can you elaborate on what doesn't make sense for you here?

  • The app.js file contains only three references to the navigator. I was not able to access this API.

The app.js file does use the navigator.windowControlsOverlay API, as shown here: https://github.com/MicrosoftEdge/Demos/blob/main/1DIV/src/app.js#L299-L301

So, thinking about this again, I'm not sure what's the source of the confusion here. Can you please elaborate on what changes you'd like us to make in order to make this article clearer?

madhaven commented 1 month ago

Thank you @captainbrosset for clarifying.

I was of the impression that the manifest file should be on top like in an Electron-app, it was weird to find the manifest in the distributable.

The navigator was still not accessible from my Electron scripts, is there a way for an Electron app to access the Window Controls Overlay?

captainbrosset commented 1 month ago

No, the Window Controls Overlay is a PWA feature only.