Skip to content

Commit 4d072c9

Browse files
committed
Remove 'chrome-extension://*' prefix from URL bar
fix brave#2534
1 parent e962ef9 commit 4d072c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/components/urlBar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class UrlBar extends ImmutableComponent {
265265
}
266266
}
267267

268-
const location = this.props.urlbar.get('location')
268+
const location = this.props.urlbar.get('location').replace(/^chrome-extension:\/\/.+\/(\w+:\/\/.+)/, '$1')
269269
const history = this.props.activeFrameProps.get('history')
270270
if (isIntermediateAboutPage(location) && history.size > 0) {
271271
return history.last()

0 commit comments

Comments
 (0)