mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-14 08:30:59 +01:00
Add flag for detecting if the mock is being used
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user