File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
< body >
13
13
< div id ="app "> </ div >
14
- < script src ="https://tally.so/widgets/embed.js " defer > </ script >
14
+ < script src ="https://tally.so/widgets/embed.js " async > </ script >
15
15
< script type ="module " src ="/src/main.js "> </ script >
16
16
</ body >
17
17
</ html >
Original file line number Diff line number Diff line change @@ -419,6 +419,7 @@ async function processPendingSurveys() {
419
419
const surveyToShow = surveys .find (
420
420
(survey ) =>
421
421
localStorage .getItem (` survey-${ survey .id } -display` ) === null &&
422
+ survey .type === ' tally_app' &&
422
423
((survey .condition === ' active_player' && isActivePlayer) ||
423
424
(survey .assigned_users .includes (userId) && ! survey .dismissed_users .includes (userId))),
424
425
)
@@ -451,8 +452,8 @@ async function processPendingSurveys() {
451
452
console .error (' Error opening Tally popup:' , e)
452
453
}
453
454
454
- console .info (` Found user survey to show with tally_id: ${ tallyId } ` )
455
- window .Tally .openPopup (tallyId , popupOptions)
455
+ console .info (` Found user survey to show with tally_id: ${ formId } ` )
456
+ window .Tally .openPopup (formId , popupOptions)
456
457
} else {
457
458
console .info (' No user survey to show' )
458
459
}
You can’t perform that action at this time.
0 commit comments