{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/ServiceWorker/issues/971","repository_url":"https://api.github.com/repos/w3c/ServiceWorker","labels_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/971/labels{/name}","comments_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/971/comments","events_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/971/events","html_url":"https://github.com/w3c/ServiceWorker/issues/971","id":174510227,"number":971,"title":"Handle the quota exceeded error globally","user":{"login":"tresdin","id":7781091,"avatar_url":"https://avatars.githubusercontent.com/u/7781091?v=3","gravatar_id":"","url":"https://api.github.com/users/tresdin","html_url":"https://github.com/tresdin","followers_url":"https://api.github.com/users/tresdin/followers","following_url":"https://api.github.com/users/tresdin/following{/other_user}","gists_url":"https://api.github.com/users/tresdin/gists{/gist_id}","starred_url":"https://api.github.com/users/tresdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresdin/subscriptions","organizations_url":"https://api.github.com/users/tresdin/orgs","repos_url":"https://api.github.com/users/tresdin/repos","events_url":"https://api.github.com/users/tresdin/events{/privacy}","received_events_url":"https://api.github.com/users/tresdin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-01T12:27:24Z","updated_at":"2016-09-13T11:50:36Z","closed_at":null,"body":"Basically, I want to show a warning message to users when the storage quota for my app is exceeded. Catching the error `QuotaExceededError` on every write operations (`caches.open`, `cache.put`, etc)  is quite painful. How can I handle it globally? Or is there any better approach for this situation?"},"comment":{"url":"https://api.github.com/repos/w3c/ServiceWorker/issues/comments/246656724","html_url":"https://github.com/w3c/ServiceWorker/issues/971#issuecomment-246656724","issue_url":"https://api.github.com/repos/w3c/ServiceWorker/issues/971","id":246656724,"user":{"login":"jakearchibald","id":93594,"avatar_url":"https://avatars.githubusercontent.com/u/93594?v=3","gravatar_id":"","url":"https://api.github.com/users/jakearchibald","html_url":"https://github.com/jakearchibald","followers_url":"https://api.github.com/users/jakearchibald/followers","following_url":"https://api.github.com/users/jakearchibald/following{/other_user}","gists_url":"https://api.github.com/users/jakearchibald/gists{/gist_id}","starred_url":"https://api.github.com/users/jakearchibald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakearchibald/subscriptions","organizations_url":"https://api.github.com/users/jakearchibald/orgs","repos_url":"https://api.github.com/users/jakearchibald/repos","events_url":"https://api.github.com/users/jakearchibald/events{/privacy}","received_events_url":"https://api.github.com/users/jakearchibald/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T11:50:36Z","updated_at":"2016-09-13T11:50:36Z","body":"What's painful about it? Give that there may be other reasons for storage methods to fail, would we be saving much by having a global event for this?"}}
{"actor":{"display_login":"jakearchibald"}}