Closed ManuelRauber closed 8 years ago
Howdy!
Disqus wants to use DISQUS.reset on ajax sites instead of calling the embed.js multiple times: https://help.disqus.com/customer/portal/articles/472107-using-disqus-on-ajax-sites
DISQUS.reset
embed.js
This PR fixes the error by using DISQUS.reset and using location.pathname as well as location.origin to set the needed identifier and url.
location.pathname
location.origin
Thank you @ManuelRauber ... I always appreciate some fixes of my lack of JS experience!
Howdy!
Disqus wants to use
DISQUS.reset
on ajax sites instead of calling theembed.js
multiple times: https://help.disqus.com/customer/portal/articles/472107-using-disqus-on-ajax-sitesThis PR fixes the error by using
DISQUS.reset
and usinglocation.pathname
as well aslocation.origin
to set the needed identifier and url.