summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran S. Diao <0@hairydiode.xyz>2019-11-21 23:55:58 -0800
committerHaoran S. Diao <0@hairydiode.xyz>2019-11-21 23:55:58 -0800
commitcf3d70c83aac587e31004c983748c35a56508ac1 (patch)
treed4fda810993a1f65f53593ad08be1bebf86a6a15
parent221ca22e1c51ab6ef8a9d870899be10eceb22706 (diff)
Fixed some typos, fixed index directive in the nginx conf
-rw-r--r--index.html6
-rw-r--r--ja.hairydiode.xyz.conf1
2 files changed, 4 insertions, 3 deletions
diff --git a/index.html b/index.html
index 8f2f7be..bc4fc18 100644
--- a/index.html
+++ b/index.html
@@ -30,15 +30,15 @@ function notify() {
msg = new Notification("あなたはチンチンが大好き");
}
//performing an https POST on the backend
-$.post("https://" + window.hostname.location + "/api/msg",
- {last-displayed: 0},// data to submit
+$.post("https://" + window.location.hostname + "/api/msg",
+ {ld : 0},// data to submit
function(data, status, jqXHR) { //callback function
if (data == ""){
return;
}
console.log(data);
}
-}
+);
</script>
<!--- Permission display-->
<p class="pd">You have not granted notification permissions</p>
diff --git a/ja.hairydiode.xyz.conf b/ja.hairydiode.xyz.conf
index d68238b..6b92e17 100644
--- a/ja.hairydiode.xyz.conf
+++ b/ja.hairydiode.xyz.conf
@@ -53,6 +53,7 @@ server {
server_name ja.hairydiode.xyz;
location / {
+ index index.html index.htm index.nginx-debian.html;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#rewrite ^/(.*)\.html $1 permanent;