diff --git a/src/assets/new-project/assets/js/code-editor.js b/src/assets/new-project/assets/js/code-editor.js index e3801596cc..c9d292b497 100644 --- a/src/assets/new-project/assets/js/code-editor.js +++ b/src/assets/new-project/assets/js/code-editor.js @@ -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';