for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
/**
* @private
*/
export default class UserActivityService {
updateLastUserActivity(date?: Date): void {
if (date === undefined) {
date = new Date();
}
Shopware.Context.app.lastActivity = Math.round(+date / 1000);