@graphcomment/graphcomment
v1.0.10
Published
generate URL for loading GraphComment in your server-side app (mainly used for WebViews for now)
Downloads
12
Readme
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);