Skip to content

Conversation

@creativeindustriesgroup
Copy link
Contributor

Refactor the current method for getting the current script to make it more reliable. Fixes #676.

Improvements to widget script handling:

  • Updated the widget script identification logic to use document.getElementById('hievent-widget-script') instead of relying on document.currentScript, ensuring the script is explicitly located and validated. This change was applied in both frontend/public/widget.js and frontend/src/embed/widget.js for consistency. [1] [2]
  • Modified the embedScript in the WidgetEditor component to include the id="hievent-widget-script" attribute, aligning it with the updated script identification logic.

(sorry for the import re-organise):

  • imports in frontend/src/components/common/WidgetEditor/index.tsx re-ordered. I opened Hi.Events in the wrong IDE Workspace (sorry!).

Copy link
Contributor

@daveearley daveearley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! Some minor comments

creativeindustriesgroup and others added 3 commits August 4, 2025 17:42
Co-authored-by: Dave Earley <dave.m.earley@gmail.com>
Co-authored-by: Dave Earley <dave.m.earley@gmail.com>
@daveearley daveearley changed the base branch from develop to v1.2.0-alpha.1 August 31, 2025 19:19
sundeepnarang and others added 17 commits August 31, 2025 20:40
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dave Earley <dave@hi.events>
Fix: Attendee ticket email syntax (HiEventsDev#737)
@daveearley daveearley changed the base branch from v1.2.0-alpha.1 to develop October 23, 2025 09:43
# Conflicts:
#	backend/app/Mail/Attendee/AttendeeTicketMail.php
#	backend/app/Mail/Order/OrderSummary.php
#	backend/app/Resources/Account/AccountResource.php
#	backend/app/Services/Domain/Email/EmailTemplateService.php
#	backend/app/Services/Domain/Email/EmailTokenContextBuilder.php
#	backend/app/Services/Domain/Email/MailBuilderService.php
#	backend/app/Services/Domain/Payment/Stripe/StripeAccountSyncService.php
#	backend/app/Services/Infrastructure/Email/LiquidTemplateRenderer.php
#	backend/composer.lock
#	backend/database/migrations/2025_10_02_084321_create_account_stripe_platforms_table.php
#	backend/resources/views/emails/custom-template.blade.php
#	backend/tests/Unit/Services/Domain/Email/EmailTemplateServiceTest.php
#	backend/tests/Unit/Services/Domain/Email/EmailTokenContextBuilderTest.php
#	frontend/package.json
#	frontend/src/components/common/AttendeeTicket/AttendeeTicket.module.scss
#	frontend/src/components/common/AttendeeTicket/index.tsx
#	frontend/src/components/common/Editor/Controls/InsertLiquidVariableControl.tsx
#	frontend/src/components/common/Editor/Controls/LiquidTokenControl.tsx
#	frontend/src/components/common/EmailTemplateEditor/EmailTemplateEditor.tsx
#	frontend/src/components/layouts/CheckIn/index.tsx
#	frontend/src/components/modals/ManageAttendeeModal/index.tsx
#	frontend/src/components/routes/account/ManageAccount/sections/PaymentSettings/index.tsx
#	frontend/src/components/routes/event/TicketDesigner/TicketDesignerPrint.tsx
#	frontend/src/components/routes/event/TicketDesigner/TicketPreview.tsx
#	frontend/src/components/routes/product-widget/PrintOrder/PrintOrder.module.scss
#	frontend/src/components/routes/product-widget/PrintOrder/index.tsx
#	frontend/src/locales.ts
#	frontend/src/locales/de.js
#	frontend/src/locales/de.po
#	frontend/src/locales/en.js
#	frontend/src/locales/en.po
#	frontend/src/locales/es.js
#	frontend/src/locales/es.po
#	frontend/src/locales/fr.js
#	frontend/src/locales/fr.po
#	frontend/src/locales/it.js
#	frontend/src/locales/it.po
#	frontend/src/locales/nl.js
#	frontend/src/locales/nl.po
#	frontend/src/locales/pt-br.js
#	frontend/src/locales/pt-br.po
#	frontend/src/locales/pt.js
#	frontend/src/locales/pt.po
#	frontend/src/locales/ru.js
#	frontend/src/locales/ru.po
#	frontend/src/locales/tr.js
#	frontend/src/locales/tr.po
#	frontend/src/locales/vi.js
#	frontend/src/locales/vi.po
#	frontend/src/locales/zh-cn.js
#	frontend/src/locales/zh-cn.po
#	frontend/src/locales/zh-hk.js
#	frontend/src/locales/zh-hk.po
#	frontend/src/types.ts
#	frontend/yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Widget Embed Browser Compatibility

4 participants