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
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 https://gist.github.com/remy/350433
try {
// Test webstorage existence.
if (!window.localStorage || !window.sessionStorage) throw "exception";
// Test webstorage accessibility - Needed for Safari private browsing.
localStorage.setItem('storage_test', 1);
localStorage.removeItem('storage_test');
} catch(e) {
(function () {
var Storage = function (type) {
View keybase.md

Keybase proof

I hereby claim:

  • I am jarrodirwin on github.
  • I am marine0089 (https://keybase.io/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.