onivim/oni

how to run browser in background?

Open

#2300 aperta il 8 giu 2018

Vedi su GitHub
 (3 commenti) (2 reazioni) (0 assegnatari)TypeScript (336 fork)batch import
bughelp wanted

Metriche repository

Star
 (11.389 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Oni Version: 0.3.4 Neovim Version (Linux only): Operating System: macOS 10.13.4

Describe your issue

I have open a browser tab and a file editor tab. But i switch to another tab then swtich to browser tab again. The webview will reload. slice 1

I guess maybe when switch to another tab, this webview instance has been destroyed. The switch to the browser tab next time, it will create a new webview instance. So it will reload page.

So how to prevent destroies the webview instance, and make it reusable in next time.

Expected behaviour

The webview will keep last status.

Actual behaviour

It will refresh.

Steps to reproduce

Open two tabs, one is browser tab. switch between these tabs. When swtich to browse tab, you will see the webview reload page.

Guida contributor