Skip to content

Commit b109211

Browse files
committed
fix: filter empty segments
1 parent 30c1c89 commit b109211

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

injected/src/features/autofill-import.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,10 @@ export default class AutofillImport extends ActionExecutorBase {
598598
// Run with retry forever until the download link is available,
599599
// Android is the one that timesout anyway and closes the whole tab if this doesn't complete
600600

601-
const exportId = window.location.pathname.split('/').pop();
601+
const exportId = window.location.pathname
602+
.split('/')
603+
.filter((segment) => segment)
604+
.pop();
602605

603606
if (!exportId) {
604607
this.postBookmarkImportMessage('actionCompleted', {

0 commit comments

Comments
 (0)