chancethecoder / pintree

This project is no longer maintained

Home Page:https://github.com/Pintree/pintree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't render sidebar in the pad

nupamore opened this issue · comments

commented

The pad can destroy itself, but renderSidebar() is within main.js only.
I don't know to solve this problem.

2 options

  1. trigger renderSidebar() when DOM is loaded and reload if instances are modified by main process

  2. handle event at renderer process and pass it to main.js by calling webcontents.executeJavaScript
    http://electron.atom.io/docs/api/web-contents/#contentsexecutejavascriptcode-usergesture-callback

option 2:
I don't know if it works.