Skip to content

Commit

Permalink
fix code URL
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jul 24, 2023
1 parent 357283d commit 7d3c559
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions js/core/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,9 @@
var file = files.find(file => file.fileName==options.fileName);
if (!file) {
file = createNewTab({type:"js",fileName:options.fileName,isEmpty:true,contents:code});
} else if (files[activeFile] != file) {
setActiveFile(files.indexOf(file));
} else {
if (files[activeFile] != file)
setActiveFile(files.indexOf(file));
setFileEditorContents(file, code);
}
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Espruino Web IDE",
"short_name": "Espruino IDE",
"description": "A Terminal and Graphical code Editor for Espruino JavaScript Microcontrollers",
"version": "0.78.2",
"version": "0.78.3",
"app": {
"background": {
"scripts": ["js/background.js"]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "espruino-web-ide",
"version": "0.78.2",
"version": "0.78.3",
"description": "A Terminal and Graphical code Editor for Espruino JavaScript Microcontrollers",
"//1": "-------------------------------------------------------- nw.js",
"main": "main.html",
Expand Down
2 changes: 1 addition & 1 deletion serviceworker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Service worker for Offline Web IDE
const VERSION = 'v105';
const VERSION = 'v106';

const CACHED_RESOURCES = [
'blockly/blockly_espruino.js',
Expand Down

0 comments on commit 7d3c559

Please sign in to comment.