Skip to content

Commit

Permalink
Merge branch 'feat/SyncRepo' of https://github.com/Real-Dev-Squad/web…
Browse files Browse the repository at this point in the history
…site-dashboard into feat/SyncRepo
  • Loading branch information
sahsisunny committed Jul 26, 2023
2 parents 59349a7 + 93ea756 commit f356526
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ async function handleSync(
}

function showToast(message, type) {
if (typeof message === String) {
console.log(typeof message);
if (typeof message === 'string') {
toast.innerHTML = `<div class="message">${message}</div>`;
}
toast.classList.remove('hidden');
Expand Down

0 comments on commit f356526

Please sign in to comment.