Skip to content

Instantly share code, notes, and snippets.

View jarrodirwin's full-sized avatar

Jarrod Irwin jarrodirwin

View GitHub Profile
@jarrodirwin
jarrodirwin / keybase.md
Created September 10, 2019 22:52
Keybase proof

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:

@jarrodirwin
jarrodirwin / storagePolyfill.js
Last active June 21, 2022 14:27 — forked from remy/gist:350433
LocalStorage/SessionStorage Polyfill with Safari Private Browsing support.
// 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) {