AutorÃa | Ultima modificación | Ver Log |
define("core/storage_validation",["exports","core/localstorage"],(function(_exports,_localstorage){var obj;/*** Clean caches after user login in order to prevent cache poisoning.* @module core/storage_validation* @copyright 2024 Raquel Ortega <raquel.ortega@moodle.com>* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later*/Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.init=void 0,_localstorage=(obj=_localstorage)&&obj.__esModule?obj:{default:obj};_exports.init=userCurrentLogin=>{userCurrentLogin!==Number(_localstorage.default.get("sUserLogintime"))&&(_localstorage.default.clean(),_localstorage.default.set("sUserLogintime",Number(userCurrentLogin).toString()))}}));//# sourceMappingURL=storage_validation.min.js.map