Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alemazzo committed Dec 23, 2021
1 parent 34d7175 commit d08330b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/pages/home/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ $(() => {
}
);

request("api/objects/categories/", loadCategory);
request("api/objects/tags/", loadTags);
request("/api/objects/categories/", loadCategory);
request("/api/objects/tags/", loadTags);

});

Expand Down Expand Up @@ -48,14 +48,14 @@ function handleChangeCategory() {
if ($(this).hasClass("selected")) {
$(this).removeClass("selected");

request("api/objects/tags", loadTags);
request("/api/objects/tags/", loadTags);
} else {
$("#categories-list > li > button").removeClass("selected");
$(this).addClass("selected");

request(
`api/objects/categories/tags/?category_id=${this.categoryId}`,
(tags) => tags.length > 0 ? loadTags(tags) : request("api/objects/tags", loadTags),
(tags) => tags.length > 0 ? loadTags(tags) : request("/api/objects/tags/", loadTags),
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/res/js/notifications-service.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class NotificationsService {

static protocol = "ws";
static protocol = "wss";
static server = "broker.emqx.io";
static port = 8083;
static port = 8084;
static topic = "tagazon-notifications";

/**
Expand Down

0 comments on commit d08330b

Please sign in to comment.