Quantcast
Channel: Place an Electron BrowserView/BrowserWindow inside Atom (Editor) - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Place an Electron BrowserView/BrowserWindow inside Atom (Editor)

$
0
0

How would I place an electronBrowserView or BrowserWindow inside Atom like in this package?

There are many examples online for BrowserView and BrowserWindow, but every single one opens a new window (not inside Atom).

Most frequently used example:

import { remote } from 'electron';const opts = { width: 800, height: 600 };const win = new remote.BrowserWindow(opts);

After some research I learnt:

  1. That instances of BrowserWindow can be placed within one another.
  2. There is a parent option (to be used in opts in the code above).
  3. There is a setBrowserView function.

But I need the correct compatible Atom object to do any of the above, if one exists (Atom's window object doesn't work, its very different to a BrowserView).

More info:Most of the packages that achieve this use WebView, which the latest electron doesn't support. Even the docs recommend using a BrowserWindow (or iFrame).

This may be impossible, but if anyone has any suggestions or solutions, they will be much appreciated.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>