Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Callback issue in Publisher JS Plugin

    Test
    2
    3
    21
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sujith84 last edited by

      I have added the Publisher JS plugin script in my website. I am also using Firebase authentication for my website. After adding the Publisher JS, the authentication stopped working. On further analysis I found that there is an error in console:

      c7dfbadc-f9bf-422b-9f05-c547af8b6fd1-image.png

      This seems to be coming from the Publishe JS plugin's JS. On further analysis, it seems the issue is because the plugin is registering a callback for message event on window. There is no condition checking if the message is coming from your source and other plugins can also trigger this even. In such a case the callb function called from your code is missing and causes error.

      e2ced1d3-cdbf-4d82-9427-ac7d886856af-image.png

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @sujith84 last edited by

        Hi @sujith84 we have noted this we will update you o this.

        1 Reply Last reply Reply Quote 0
        • A
          admin last edited by

          Hello @sujith84 our team has fixed the issue kindly test it and you find any issue kindly revert us back.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post