Skip to content

Commit c4e1b59

Browse files
authored
Merge branch 'main' into feat/plugin-repo-url
2 parents 213639b + fd1d834 commit c4e1b59

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

package-lock.json

Lines changed: 3 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/run.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,6 @@ async function run(
772772
* Opens the preview in browser
773773
*/
774774
function openBrowser() {
775-
console.log(`Running ${Url.join(pathName, filename)}`);
776775
let url = "";
777776
if (pathName === null && !activeFile.location) {
778777
url = `http://localhost:${port}/__unsaved_file__`;

src/pages/fileBrowser/fileBrowser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) {
10821082
*/
10831083
async function getDir(url, name) {
10841084
const { fileBrowser } = appSettings.value;
1085-
let list = null;
1085+
let list = [];
10861086
let error = false;
10871087

10881088
if (url in cachedDir) {
@@ -1107,7 +1107,7 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) {
11071107

11081108
const fs = fsOperation(url);
11091109
try {
1110-
list = await fs.lsDir();
1110+
list = (await fs.lsDir()) ?? [];
11111111
} catch (err) {
11121112
if (progress[id]) {
11131113
helpers.error(err, url);

0 commit comments

Comments
 (0)