Skip to content

rg4js does not initialise in noConflict mode when safari serves from memory #544

@CptMeatball

Description

@CptMeatball

We're running into an issue where Raygun does not initialise correctly when safari returns the response completely from memory. We can reproduce this behaviour in Safari on both Desktop (MacOS) as mobile (iOS) devices. Other browsers do not seem to have this issue.

We running this script to set-up rg4js in noConflict mode.

function initApp() {
  rg4js('noConflict', true);
  const raygunInstance = rg4js('getRaygunInstance');
  if (!raygunInstance) {
    requestAnimationFrame(() => {
      initApp(); // << This runs infinitely
    });

    return;
  }

  ....
}

Version: 3.1.3

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