1.0.10 • Published 5 years ago
@graphcomment/graphcomment v1.0.10
GraphComment URL generator
Generate URL for loading GraphComment in your server-side app (mainly used for WebViews for now)
var gc = require('@graphcomment/graphcomment');
var url = gc({
graphcomment_id: 'demo-gc',
url: 'http://example.com/foo/bar', // as returned by `window.location.href`
});
console.log(url);