Skip to content

Commit

Permalink
chore: remove github project option from desktop builds till git inte…
Browse files Browse the repository at this point in the history
…gration
  • Loading branch information
abose committed Feb 21, 2024
1 parent 60f9a75 commit 35ffea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/assets/new-project/assets/js/code-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ function initCodeEditor() {
_openURLInTauri(document.getElementById(iconID).getAttribute('href'));
};
}
if(window.top.__TAURI__) {
// in desktop, we don't show github project option till we have git extension integrated.
document.getElementById("newGitHubProject").classList.add("forced-hidden");
}
document.getElementById("newGitHubProject").onclick = function() {
Metrics.countEvent(Metrics.EVENT_TYPE.NEW_PROJECT, "main.Click", "github-project");
window.location.href = 'new-project-github.html';
Expand Down

0 comments on commit 35ffea7

Please sign in to comment.