Node.js based forum software built for the modern web
Add flag for detecting if the mock is being used
Peter Jaszkowiakcc76a8663d09
diff --git a/public/src/modules/storage.js b/public/src/modules/storage.jsindex 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) {