Skip to content

Instantly share code, notes, and snippets.

Jarrod Irwin jarrodirwin

Block or report user

Report or block jarrodirwin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jarrodirwin / storagePolyfill.js
Last active Jan 23, 2019 — forked from remy/gist:350433
LocalStorage/SessionStorage Polyfill with Safari Private Browsing support.
View storagePolyfill.js
// Refer to
try {
// Test webstorage existence.
if (!window.localStorage || !window.sessionStorage) throw "exception";
// Test webstorage accessibility - Needed for Safari private browsing.
localStorage.setItem('storage_test', 1);
} catch(e) {
(function () {
var Storage = function (type) {

Keybase proof

I hereby claim:

  • I am jarrodirwin on github.
  • I am marine0089 ( on keybase.
  • I have a public key ASCy6of8njfj1lRUp5hn8CGX86GK8RDifRYc4OEnCGYbVwo

To claim this, I am signing this object:

You can’t perform that action at this time.