Skip to content

Commit

Permalink
Update dashboard.js
Browse files Browse the repository at this point in the history
  • Loading branch information
smccle authored Sep 7, 2022
1 parent cee406c commit 3241f40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ function getData(path, api, success) {
function openNewProject(Data) {
var count = 0-1;
var splitAccount;
alert(window.np);
// alert(window.np);
Array.from({length: Data.length}, () => {
count += 1;
splitAccount = Data[count].account.split(":");
alert(splitAccount);
alert(splitAccount[0]);
alert(splitAccount[1]);
// alert(splitAccount);
// alert(splitAccount[0]);
// alert(splitAccount[1]);
if (getCookie("li") == splitAccount[0] && window.np == splitAccount[1]) {
saveEditor(Data[count]._id, projects, window.np);
} else {
alert("error");
// alert("error");
}
})
}
Expand Down

0 comments on commit 3241f40

Please sign in to comment.