summaryrefslogtreecommitdiff
path: root/plugins/share
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-19 10:22:00 +0300
committerAndrew Dolgov <[email protected]>2021-02-19 10:22:00 +0300
commit6b43b788d909ce20f07f29f9f3ccd2f6a8715616 (patch)
tree1a2f08c9cb565f3d9eb95b884f3c3891685d04bd /plugins/share
parentdba6dce3b332f1c7cfb60e3411c6b85c01be7471 (diff)
migrate xhrJson invocations to the new helper
Diffstat (limited to 'plugins/share')
-rw-r--r--plugins/share/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/share/share.js b/plugins/share/share.js
index a5f60d267..d7b8cd1f9 100644
--- a/plugins/share/share.js
+++ b/plugins/share/share.js
@@ -10,7 +10,7 @@ Plugins.Share = {
Notify.progress("Trying to change URL...", true);
- xhrJson("backend.php", App.getPhArgs("share", "newkey", {id: id}), (reply) => {
+ xhr.json("backend.php", App.getPhArgs("share", "newkey", {id: id}), (reply) => {
if (reply) {
const new_link = reply.link;
const target = dialog.domNode.querySelector(".target-url");