{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/7582","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/7582/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/7582/comments","events_url":"https://api.github.com/repos/electron/electron/issues/7582/events","html_url":"https://github.com/electron/electron/issues/7582","id":182619954,"number":7582,"title":"How to share a variable between two Renderer？","user":{"login":"milu2003","id":15957433,"avatar_url":"https://avatars0.githubusercontent.com/u/15957433?v=4","gravatar_id":"","url":"https://api.github.com/users/milu2003","html_url":"https://github.com/milu2003","followers_url":"https://api.github.com/users/milu2003/followers","following_url":"https://api.github.com/users/milu2003/following{/other_user}","gists_url":"https://api.github.com/users/milu2003/gists{/gist_id}","starred_url":"https://api.github.com/users/milu2003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milu2003/subscriptions","organizations_url":"https://api.github.com/users/milu2003/orgs","repos_url":"https://api.github.com/users/milu2003/repos","events_url":"https://api.github.com/users/milu2003/events{/privacy}","received_events_url":"https://api.github.com/users/milu2003/received_events","type":"User","site_admin":false},"labels":[{"id":256494604,"url":"https://api.github.com/repos/electron/electron/labels/question","name":"question","color":"0e8a16","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-12T20:02:34Z","updated_at":"2018-02-28T08:56:08Z","closed_at":"2016-10-12T20:51:58Z","author_association":"NONE","body":"- Electron version:0.37\n- Operating system:mac\n\nin main:\n\n`global.var = 1;`\n\nin Renderer, read it like this:\n\n`remote.getGlobal('var')`\n\nBut I would like to modify the variables, even in other renderer can also be accessed\n\nHow to do it？\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/369165351","html_url":"https://github.com/electron/electron/issues/7582#issuecomment-369165351","issue_url":"https://api.github.com/repos/electron/electron/issues/7582","id":369165351,"user":{"login":"YurySolovyov","id":2168518,"avatar_url":"https://avatars0.githubusercontent.com/u/2168518?v=4","gravatar_id":"","url":"https://api.github.com/users/YurySolovyov","html_url":"https://github.com/YurySolovyov","followers_url":"https://api.github.com/users/YurySolovyov/followers","following_url":"https://api.github.com/users/YurySolovyov/following{/other_user}","gists_url":"https://api.github.com/users/YurySolovyov/gists{/gist_id}","starred_url":"https://api.github.com/users/YurySolovyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YurySolovyov/subscriptions","organizations_url":"https://api.github.com/users/YurySolovyov/orgs","repos_url":"https://api.github.com/users/YurySolovyov/repos","events_url":"https://api.github.com/users/YurySolovyov/events{/privacy}","received_events_url":"https://api.github.com/users/YurySolovyov/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T08:56:08Z","updated_at":"2018-02-28T08:56:08Z","author_association":"CONTRIBUTOR","body":"Classes themselves or instances of the classes - objects? \r\n\r\nFor classes themselves, you can put them in a separate file and require in both renderer and main. \r\n\r\nFor objects - you can pass them in serialized form and then init new instances from serialized state."}}
{"actor":{"display_login":"YurySolovyov"}}