From cc76a8663d095ae58a71682e4a63c1954986d0fb Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Wed, 19 Apr 2017 20:44:11 -0600
Subject: [PATCH] Add flag for detecting if the mock is being used
---
public/src/modules/storage.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/public/src/modules/storage.js b/public/src/modules/storage.js
index 2fdf38f8af..5cb6051586 100644
--- a/public/src/modules/storage.js
+++ b/public/src/modules/storage.js
@@ -8,6 +8,7 @@ define('storage', function () {
this._store = {};
this._keys = [];
}
+ Storage.prototype.isMock = true;
Storage.prototype.setItem = function (key, val) {
key = String(key);
if (this._keys.indexOf(key) === -1) {