This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The following schema is auto-generated. | |
// This file contains FSL for FQL10-compatible schema items. | |
collection GeneralSetting { | |
history_days 30 | |
} | |
collection Student { | |
history_days 30 | |
index byEmailAndSub { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//For React, just put this into anyway inside the react project | |
const _setItem = Storage.prototype.setItem; | |
const _getItem = Storage.prototype.getItem; | |
Storage.prototype.setItem = function(key, value) { | |
if (this === sessionStorage) { //example of specific Storage type | |
_setItem.call(this, key, btoa(encodeURIComponent(value)));//encodingURI is for language other than Latin | |
} else { | |
_setItem.call(this, arguments[0], arguments[1]); |