@@ -113,7 +113,7 @@
});
},
addChange: function (type) {
- let change = $(`#new-${type}`).val().toLowerCase().trim();
+ let change = $(`#new-${type}`).val().trim();
if (this.news[type].indexOf(change) !== -1) return Toast.methods.addToast(`Tag already exists`, 3000);
@@ -51,7 +51,7 @@
ready: function () {
let _this = this;
- io.getSocket((socket) => {
+ io.getSocket(true, (socket) => {
_this.socket = socket;
_this.socket.emit('news.newest', res => {
_this.news = res.data;