mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
commento.js: Add iframe support
This commit is contained in:
@ -346,8 +346,8 @@
|
|||||||
function commentsGet(callback) {
|
function commentsGet(callback) {
|
||||||
var json = {
|
var json = {
|
||||||
"commenterToken": commenterTokenGet(),
|
"commenterToken": commenterTokenGet(),
|
||||||
"domain": location.host,
|
"domain": parent.location.host,
|
||||||
"path": location.pathname,
|
"path": parent.location.pathname,
|
||||||
};
|
};
|
||||||
|
|
||||||
post(origin + "/api/comment/list", json, function(resp) {
|
post(origin + "/api/comment/list", json, function(resp) {
|
||||||
@ -520,8 +520,8 @@
|
|||||||
|
|
||||||
var json = {
|
var json = {
|
||||||
"commenterToken": commenterTokenGet(),
|
"commenterToken": commenterTokenGet(),
|
||||||
"domain": location.host,
|
"domain": parent.location.host,
|
||||||
"path": location.pathname,
|
"path": parent.location.pathname,
|
||||||
"parentHex": id,
|
"parentHex": id,
|
||||||
"markdown": markdown,
|
"markdown": markdown,
|
||||||
};
|
};
|
||||||
@ -1429,8 +1429,8 @@
|
|||||||
|
|
||||||
var json = {
|
var json = {
|
||||||
"commenterToken": commenterTokenGet(),
|
"commenterToken": commenterTokenGet(),
|
||||||
"domain": location.host,
|
"domain": parent.location.host,
|
||||||
"path": location.pathname,
|
"path": parent.location.pathname,
|
||||||
"attributes": attributes,
|
"attributes": attributes,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user