Sign in

How to add facebook comments

#3775
Tomasz Dziuda
Moderator

I suppose that the only way is create script tag dynamically and use window.location to get a proper URL

e.g:

var scr = document.createElement(‘script’);
scr.setAttribute(‘src’, window.location.href + ‘/test.js’);
document.body.appendChild(scr);

--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!