Skip to content

TypeError: Cannot read property 'force' of undefined #363

@rezakeramati

Description

@rezakeramati

The new version of script is using privateShowHttpPrompt instead of showHttpPrompt, but in privateShowHttpPrompt the following code is missing

if (!options)
      options = {};

causing the following error

Uncaught (in promise) TypeError: Cannot read property 'force' of undefined
    at Function.<anonymous> (OneSignal.js:281)
    at EmailDeviceRecord.js:7
    at Object.next (EmailDeviceRecord.js:7)
    at s (EmailDeviceRecord.js:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions