{"action":"opened","issue":{"url":"https://api.github.com/repos/unixpickle/crystal/issues/1","labels_url":"https://api.github.com/repos/unixpickle/crystal/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/unixpickle/crystal/issues/1/comments","events_url":"https://api.github.com/repos/unixpickle/crystal/issues/1/events","html_url":"https://github.com/unixpickle/crystal/issues/1","id":80369843,"number":1,"title":"Use window.matchMedia","user":{"login":"unixpickle","id":406021,"avatar_url":"https://avatars.githubusercontent.com/u/406021?v=3","gravatar_id":"","url":"https://api.github.com/users/unixpickle","html_url":"https://github.com/unixpickle","followers_url":"https://api.github.com/users/unixpickle/followers","following_url":"https://api.github.com/users/unixpickle/following{/other_user}","gists_url":"https://api.github.com/users/unixpickle/gists{/gist_id}","starred_url":"https://api.github.com/users/unixpickle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixpickle/subscriptions","organizations_url":"https://api.github.com/users/unixpickle/orgs","repos_url":"https://api.github.com/users/unixpickle/repos","events_url":"https://api.github.com/users/unixpickle/events{/privacy}","received_events_url":"https://api.github.com/users/unixpickle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-25T03:36:49Z","updated_at":"2015-05-25T03:36:49Z","closed_at":null,"body":"Using the `window.matchMedia` function you can get notified when the device pixel ratio changes. If this function is available, `setInterval()` is not necessary and events can come in more reliably."}}