From bcd81911cde09c9439196e091356fa15aa4d7bd2 Mon Sep 17 00:00:00 2001 From: B4D_US3R Date: Thu, 16 Jan 2025 12:28:12 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=8B=D1=82=D0=B0=D0=BB?= =?UTF-8?q?=D1=81=D1=8F=20=D1=83=D0=B1=D1=80=D0=B0=D1=82=D1=8C=20=D0=B1?= =?UTF-8?q?=D0=B0=D0=B3,=20=D0=BF=D1=80=D0=B8=20=D0=BA=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=BE=D0=BC=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=20/=20=D0=B2=D0=B2=D0=B5=D1=81=D1=82=D0=B8?= =?UTF-8?q?=20=D1=87=D1=82=D0=BE-=D0=BB=D0=B8=D0=B1=D0=BE,=20=D1=82=D0=BE?= =?UTF-8?q?=20=D0=B2=20img=20src=20=D1=82=D0=BE=D1=80=D1=87=D0=B0=D0=BB=20?= =?UTF-8?q?HTML=20=D0=BA=D0=BE=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index d24192a..9e3d357 100644 --- a/src/main.js +++ b/src/main.js @@ -2,7 +2,7 @@ import axios from "axios"; let pictureId = document.getElementById("CatGirlPicture"); pictureId.onclick = function() { - axios.get(location.href + "rand").then(function (response) { + axios.get(location.protocol + "//" + location.host + "/rand").then(function (response) { console.log(response.data) document.getElementById("CatGirlPicture").setAttribute("src", response.data); });