{"action":"created","issue":{"url":"https://api.github.com/repos/rocketinventor/ace-minimap/issues/1","labels_url":"https://api.github.com/repos/rocketinventor/ace-minimap/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/rocketinventor/ace-minimap/issues/1/comments","events_url":"https://api.github.com/repos/rocketinventor/ace-minimap/issues/1/events","html_url":"https://github.com/rocketinventor/ace-minimap/issues/1","id":103943511,"number":1,"title":"Add option to use ace background color on minimap","user":{"login":"rocketinventor","id":6473114,"avatar_url":"https://avatars.githubusercontent.com/u/6473114?v=3","gravatar_id":"","url":"https://api.github.com/users/rocketinventor","html_url":"https://github.com/rocketinventor","followers_url":"https://api.github.com/users/rocketinventor/followers","following_url":"https://api.github.com/users/rocketinventor/following{/other_user}","gists_url":"https://api.github.com/users/rocketinventor/gists{/gist_id}","starred_url":"https://api.github.com/users/rocketinventor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocketinventor/subscriptions","organizations_url":"https://api.github.com/users/rocketinventor/orgs","repos_url":"https://api.github.com/users/rocketinventor/repos","events_url":"https://api.github.com/users/rocketinventor/events{/privacy}","received_events_url":"https://api.github.com/users/rocketinventor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rocketinventor/ace-minimap/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-30T20:14:52Z","updated_at":"2015-08-31T02:58:17Z","closed_at":"2015-08-31T02:58:17Z","body":""},"comment":{"url":"https://api.github.com/repos/rocketinventor/ace-minimap/issues/comments/136239762","html_url":"https://github.com/rocketinventor/ace-minimap/issues/1#issuecomment-136239762","issue_url":"https://api.github.com/repos/rocketinventor/ace-minimap/issues/1","id":136239762,"user":{"login":"rocketinventor","id":6473114,"avatar_url":"https://avatars.githubusercontent.com/u/6473114?v=3","gravatar_id":"","url":"https://api.github.com/users/rocketinventor","html_url":"https://github.com/rocketinventor","followers_url":"https://api.github.com/users/rocketinventor/followers","following_url":"https://api.github.com/users/rocketinventor/following{/other_user}","gists_url":"https://api.github.com/users/rocketinventor/gists{/gist_id}","starred_url":"https://api.github.com/users/rocketinventor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocketinventor/subscriptions","organizations_url":"https://api.github.com/users/rocketinventor/orgs","repos_url":"https://api.github.com/users/rocketinventor/repos","events_url":"https://api.github.com/users/rocketinventor/events{/privacy}","received_events_url":"https://api.github.com/users/rocketinventor/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T02:58:17Z","updated_at":"2015-08-31T02:58:17Z","body":"Solved, code is as follows:\r\n```\r\nvar div = document.querySelector(\".minimap\");\r\ndiv.style.display = \"block\";\r\nif (settings.get(\"user/ace-minimap/@theme\") == \"\") {\r\n    var elem1 = document.getElementsByClassName(\"ace_editor\")[0];\r\n    var color = window.getComputedStyle(elem1, null).backgroundColor;\r\n    div.style.backgroundColor = color;\r\n} else {\r\n    div.style.backgroundColor = settings.get(\"user/ace-minimap/@theme\");\r\n}\r\n```"}}