Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
11 efrain 1
define("core/storage_validation",["exports","core/localstorage"],(function(_exports,_localstorage){var obj;
2
/**
3
   * Clean caches after user login in order to prevent cache poisoning.
4
   * @module      core/storage_validation
5
   * @copyright   2024 Raquel Ortega <raquel.ortega@moodle.com>
6
   * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
7
   */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()))}}));
8
 
9
//# sourceMappingURL=storage_validation.min.js.map