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 @@ -410,6 +410,7 @@ async function processPendingSurveys() {
410
410
const surveyToShow = surveys .find (
411
411
(survey ) =>
412
412
localStorage .getItem (` survey-${ survey .id } -display` ) === null &&
413
+ survey .type === ' tally_app' &&
413
414
((survey .condition === ' active_player' && isActivePlayer) ||
414
415
(survey .assigned_users .includes (userId) && ! survey .dismissed_users .includes (userId))),
415
416
)
@@ -442,8 +443,8 @@ async function processPendingSurveys() {
442
443
console .error (' Error opening Tally popup:' , e)
443
444
}
444
445
445
- console .info (` Found user survey to show with tally_id: ${ tallyId } ` )
446
- window .Tally .openPopup (tallyId , popupOptions)
446
+ console .info (` Found user survey to show with tally_id: ${ formId } ` )
447
+ window .Tally .openPopup (formId , popupOptions)
447
448
} else {
448
449
console .info (' No user survey to show' )
449
450
}
You can’t perform that action at this time.
0 commit comments