mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -05:00
feat: [UEPR-40, UEPR-42] changed user condtions and added check for user guiding id
This commit is contained in:
parent
442e90bcca
commit
727f57438b
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ const SCRIPT_ID = 'UserGuiding';
|
|||
|
||||
const CONDITIONS = {condition_list: [
|
||||
'IsLoggedIn',
|
||||
'IsNewScratcher',
|
||||
'NotAdmin',
|
||||
'NotMuted'
|
||||
]};
|
||||
|
||||
|
@ -56,7 +56,7 @@ const probabilityPicker = data => {
|
|||
};
|
||||
|
||||
const activateUserGuiding = (userId, callback) => {
|
||||
if (!document.getElementById(SCRIPT_ID)) {
|
||||
if (USER_GUIDING_ID && !document.getElementById(SCRIPT_ID)) {
|
||||
const userGuidingScript = document.createElement('script');
|
||||
userGuidingScript.id = SCRIPT_ID;
|
||||
userGuidingScript.innerHTML = getUserGuidingSnippet();
|
||||
|
|
Loading…
Reference in a new issue