Skip to content

AdSense: new intl.numberformat error on dashboard #1107

@jamesozzie

Description

@jamesozzie

Bug Description

Some users are encountering errors on their AdSense dashboard. Reports of this issue started after the last plugin release (1.2.0)

image

new Intl.NumberFormat(navigator.language,{style:”currency”,currency:n}).formatToParts is not a function. (In ‘new Intl.NumberFormat(navigator.language,{style:”currency”,currency:n}).formatToParts(e)’, ‘new Intl.NumberFormat(navigator.language,{style:”currency”,currency:n}).formatToParts’ is undefined)

Related WP Support Form threads:

Additional information

Screenshots

Safari 12 (Mojave)
image

Edge 17 (Win 10) - Different error than reported
image
Interestingly, this thread reports being on a more recent version of Windows and on an older version of Edge than they should be due to reported problems with auto-update.

Additional Context

  • PHP Version:
  • OS: [e.g. iOS]
  • Browser: Safari 12, Edge 17
  • Plugin Version [e.g. 22]
  • Device: [e.g. iPhone6]

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • Currency formatting should work in all major browsers, going back at least 2 major versions

Implementation Brief

Changelog entry

  • Fix JavaScript errors in AdSense screens that was a result of Intl.NumberFormat.formatToParts not being supported in Safari.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0High priorityType: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions