Javascript crash when tarteaucitron.user is null in main.js

Created on 23 November 2022, over 1 year ago
Updated 7 April 2023, about 1 year ago

Problem/Motivation

Javascript crashes if no service is activated or no service instantiating a user object is activated:

The following code crashes in main.js due to tarteaucitron.user being null:

if (tarteaucitron.user.multiplegtagUa) {

Steps to reproduce

Use tacjs module without any module activated or any module instantiating a custom user object (custom parameter).

Proposed resolution

Check that tarteaucitron.user is not null.

πŸ› Bug report
Status

Fixed

Version

6.3

Component

Code

Created by

πŸ‡«πŸ‡·France mably

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024