Giter Site home page Giter Site logo

Comments (10)

tterb avatar tterb commented on June 14, 2024 1

@renomureza Thanks for your help!
I'll try to get a new version of the package published to NPM later today.

from disqus-react.

tterb avatar tterb commented on June 14, 2024

@renomureza Thanks for reporting this issue. It looks like there might be an issue with the cleanup process.
Do you have a public repo that I can use to reproduce this issue?

from disqus-react.

renomureza avatar renomureza commented on June 14, 2024

Hi @tterb you can check it out here:

from disqus-react.

tterb avatar tterb commented on June 14, 2024

@renomureza I just put up a PR(#111) to fix this issue. It would be great if you could pull the branch and make sure that it resolves your problem before merging.

from disqus-react.

renomureza avatar renomureza commented on June 14, 2024

@renomureza I just put up a PR(#111) to fix this issue. It would be great if you could pull the branch and make sure that it resolves your problem before merging.

@tterb It works fine, in <header> it's clean.

But, I noticed at the end of the tag there is an <iframe> which has the same behavior, not cleaned.

image

from disqus-react.

tterb avatar tterb commented on June 14, 2024

@renomureza Nice catch!
I've updated the PR to also remove the referenced iframe.

from disqus-react.

renomureza avatar renomureza commented on June 14, 2024

@tterb Yes it works, everything is as expected. 🥳

Waiting for release.

from disqus-react.

brokul-dev avatar brokul-dev commented on June 14, 2024

Hi!
I've updated disqus-react package to the newest version. Scripts from head and Disqus iframe are removed but there is still one iframe that is not deleted. Here is the result after few roundtrips:

image

Worth noticing that these iframes do not have title attributes. This attribute is currently used as a query selector in the cleanup code.

Perhaps it's a problem on my side? 🙂

from disqus-react.

renomureza avatar renomureza commented on June 14, 2024

@brokul-dev i had the same problem, @tterb

from disqus-react.

tterb avatar tterb commented on June 14, 2024

@renomureza @brokul-dev Unfortunately, due to the lack of attributes on that iframe there isn't really a way of targeting them for removal that wouldn't cause unintended consequences for any other iframes on the page.

from disqus-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.