browserstate/history.js — pull request #270 by holic (2013-04-19 07:45:43+00:00)
Title: Improve error handling for QUOTA_EXCEEDED_ERR

Private browsing in Safari throws `DOMException.QUOTA_EXCEEDED_ERR` when trying to `sessionStorage.setItem(...)`. This pull checks `sessionStorage.length` (always `0` when private browsing in Safari) before re-throwing .

Also `npm install` was complaining about the `1.8` version number, but `1.8.0` works fine.