{"action":"opened","issue":{"url":"https://api.github.com/repos/igvteam/igv-webapp/issues/37","repository_url":"https://api.github.com/repos/igvteam/igv-webapp","labels_url":"https://api.github.com/repos/igvteam/igv-webapp/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/igvteam/igv-webapp/issues/37/comments","events_url":"https://api.github.com/repos/igvteam/igv-webapp/issues/37/events","html_url":"https://github.com/igvteam/igv-webapp/issues/37","id":368871240,"node_id":"MDU6SXNzdWUzNjg4NzEyNDA=","number":37,"title":"Save session","user":{"login":"jrobinso","id":933148,"node_id":"MDQ6VXNlcjkzMzE0OA==","avatar_url":"https://avatars0.githubusercontent.com/u/933148?v=4","gravatar_id":"","url":"https://api.github.com/users/jrobinso","html_url":"https://github.com/jrobinso","followers_url":"https://api.github.com/users/jrobinso/followers","following_url":"https://api.github.com/users/jrobinso/following{/other_user}","gists_url":"https://api.github.com/users/jrobinso/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobinso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobinso/subscriptions","organizations_url":"https://api.github.com/users/jrobinso/orgs","repos_url":"https://api.github.com/users/jrobinso/repos","events_url":"https://api.github.com/users/jrobinso/events{/privacy}","received_events_url":"https://api.github.com/users/jrobinso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"turner","id":87169,"node_id":"MDQ6VXNlcjg3MTY5","avatar_url":"https://avatars3.githubusercontent.com/u/87169?v=4","gravatar_id":"","url":"https://api.github.com/users/turner","html_url":"https://github.com/turner","followers_url":"https://api.github.com/users/turner/followers","following_url":"https://api.github.com/users/turner/following{/other_user}","gists_url":"https://api.github.com/users/turner/gists{/gist_id}","starred_url":"https://api.github.com/users/turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turner/subscriptions","organizations_url":"https://api.github.com/users/turner/orgs","repos_url":"https://api.github.com/users/turner/repos","events_url":"https://api.github.com/users/turner/events{/privacy}","received_events_url":"https://api.github.com/users/turner/received_events","type":"User","site_admin":false},"assignees":[{"login":"turner","id":87169,"node_id":"MDQ6VXNlcjg3MTY5","avatar_url":"https://avatars3.githubusercontent.com/u/87169?v=4","gravatar_id":"","url":"https://api.github.com/users/turner","html_url":"https://github.com/turner","followers_url":"https://api.github.com/users/turner/followers","following_url":"https://api.github.com/users/turner/following{/other_user}","gists_url":"https://api.github.com/users/turner/gists{/gist_id}","starred_url":"https://api.github.com/users/turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turner/subscriptions","organizations_url":"https://api.github.com/users/turner/orgs","repos_url":"https://api.github.com/users/turner/repos","events_url":"https://api.github.com/users/turner/events{/privacy}","received_events_url":"https://api.github.com/users/turner/received_events","type":"User","site_admin":false},{"login":"helgathorv","id":1265859,"node_id":"MDQ6VXNlcjEyNjU4NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1265859?v=4","gravatar_id":"","url":"https://api.github.com/users/helgathorv","html_url":"https://github.com/helgathorv","followers_url":"https://api.github.com/users/helgathorv/followers","following_url":"https://api.github.com/users/helgathorv/following{/other_user}","gists_url":"https://api.github.com/users/helgathorv/gists{/gist_id}","starred_url":"https://api.github.com/users/helgathorv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgathorv/subscriptions","organizations_url":"https://api.github.com/users/helgathorv/orgs","repos_url":"https://api.github.com/users/helgathorv/repos","events_url":"https://api.github.com/users/helgathorv/events{/privacy}","received_events_url":"https://api.github.com/users/helgathorv/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-10-10T21:54:36Z","updated_at":"2018-10-10T21:54:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Add a button to save the current session to a json file.   The session json is obtained from the function igv.Browser.prototype.toJSON.     The following snippet can be used for the download\r\n\r\n```javascript\r\n        const filename =  <from user>\r\n        const sessionJson = browser.toJSON();\r\n        const data = URL.createObjectURL(new Blob([sessionJson], {\r\n            type: \"application/octet-stream\"\r\n        }));\r\n        igv.download(filename, data);\r\n\r\n```"}}
{"actor":{"display_login":"jrobinso"}}