mirror of
https://github.com/wassname/talk.git
synced 2026-10-29 13:40:57 +08:00
Using CommentId by queryParam
This commit is contained in:
1 parent
32318567c9
commit
87f8ed401f
1 file changed
+4
-1
@@ -190,7 +190,10 @@ Talk.render = function(el, opts) {
|
||||
// Compose the query to send down to the Talk API so it knows what to load.
|
||||
let query = {};
|
||||
|
||||
query.comment_id = window.location.hash.slice(1);
|
||||
let urlParams = new URLSearchParams(window.location.search);
|
||||
|
||||
query.comment_id = urlParams.get('commentId');
|
||||
|
||||
query.asset_id = opts.asset_id;
|
||||
|
||||
query.asset_url = opts.asset_url;
|
||||
|
||||
Reference in new issue
Block a user