From ce47f80e8e55958d5c444ac2fb68e6ea1bac4c58 Mon Sep 17 00:00:00 2001 From: dasZGFz Date: Tue, 12 Feb 2019 23:35:33 -0800 Subject: [PATCH] commento.js: Add iframe support --- frontend/js/commento.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index ba87758..08da00a 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -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, };