Skip to content

Commit

Permalink
Fix Standalone project creator key listener
Browse files Browse the repository at this point in the history
Add more context to console logs
  • Loading branch information
sciencewhiz committed Aug 27, 2023
1 parent 165a6e6 commit 9f6c10f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wpilib-utility-standalone/src/projectcreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const app = remote.app;
// const shell = electron.shell;
const basepath = app.getAppPath();

console.log(basepath);
console.log('BasePath: ' + basepath);

let resourceRoot = path.join(basepath, 'resources');
if (basepath.indexOf('default_app.asar') >= 0) {
Expand Down Expand Up @@ -168,14 +168,14 @@ window.addEventListener('load', async () => {
disposables.push(javaExamples);
disposables.push(javaTemplates);

console.log(projectRootPath);
console.log(gradleRoot);
console.log('ProjectRootPath: ' + projectRootPath);
console.log('GradleRoot: ' + gradleRoot);
});

document.addEventListener('keydown', (e) => {
if (e.which === 123) {
if (e.key === '{') {
bWindow.webContents.openDevTools();
} else if (e.which === 116) {
} else if (e.key === 't') {
location.reload();
}
});
Expand Down

0 comments on commit 9f6c10f

Please sign in to comment.