Skip to content

Commit 8355f94

Browse files
docs: fix
1 parent 4f5c836 commit 8355f94

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,12 @@ app.use(instance);
462462
instance.waitUntilValid(() => {
463463
instance
464464
.getFilenameFromUrl("/bundle.js")
465-
.then(() => {
466-
if (filename) {
467-
console.log(`Filename is ${filename}`);
465+
.then((filename) => {
466+
if (!filename) {
467+
return;
468468
}
469+
470+
console.log(`Filename is ${filename}`);
469471
})
470472
.catch((err) => {
471473
console.log(`Error: ${err}`);

0 commit comments

Comments
 (0)