commento.js: Add iframe support

This commit is contained in:
dasZGFz 2019-02-12 23:35:33 -08:00
parent e434f59f9a
commit ce47f80e8e

View File

@ -346,8 +346,8 @@
function commentsGet(callback) {
var json = {
"commenterToken": commenterTokenGet(),
"domain": location.host,
"path": location.pathname,
"domain": parent.location.host,
"path": parent.location.pathname,
};
post(origin + "/api/comment/list", json, function(resp) {
@ -520,8 +520,8 @@
var json = {
"commenterToken": commenterTokenGet(),
"domain": location.host,
"path": location.pathname,
"domain": parent.location.host,
"path": parent.location.pathname,
"parentHex": id,
"markdown": markdown,
};
@ -1429,8 +1429,8 @@
var json = {
"commenterToken": commenterTokenGet(),
"domain": location.host,
"path": location.pathname,
"domain": parent.location.host,
"path": parent.location.pathname,
"attributes": attributes,
};