Skip to content

Commit

Permalink
fix: letがない、!==でない
Browse files Browse the repository at this point in the history
  • Loading branch information
hidao80 committed Apr 29, 2018
1 parent e16455a commit fac3ad1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ function setToken() {
function getTags() {
const text = document.querySelector("#tags").value;
let ret = [];
let tags = text.trim().split(" ");
const tags = text.trim().split(" ");

for(let i = 0; i < tags.length; i++) {
tmp = tags[i].split(":");
let tmp = tags[i].split(":");
if (tmp.length < 2) {
ret.push({"name":tmp[0]});
} else {
Expand Down Expand Up @@ -187,7 +187,7 @@ function post() {
//execution api
Qiita.Resources.Item.create_item(options).then(function(res){
console.log(res);
if (res.message != undefined) {
if (res.message !== undefined) {
document.querySelector('#ng-dialog').showModal();
} else {
document.querySelector('#ok-dialog').showModal();
Expand Down

0 comments on commit fac3ad1

Please sign in to comment.