mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed instant loading not honoring target=_blank
This commit is contained in:
parent
5b8721ff92
commit
e96657cc1e
2
material/assets/javascripts/bundle.0f38e514.min.js
vendored
Normal file
2
material/assets/javascripts/bundle.0f38e514.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.0f38e514.min.js.map
Normal file
1
material/assets/javascripts/bundle.0f38e514.min.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.4dfac743.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.4dfac743.min.js.map",
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.0f38e514.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.0f38e514.min.js.map",
|
||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.d7126665.min.js",
|
||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.d7126665.min.js.map",
|
||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.58d22e8e.min.js",
|
||||
|
@ -179,7 +179,7 @@
|
||||
</div>
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/vendor.d7126665.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.4dfac743.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.0f38e514.min.js' | url }}"></script>
|
||||
{%- set translations = {} -%}
|
||||
{%- for key in [
|
||||
"clipboard.copy",
|
||||
|
@ -125,7 +125,7 @@ export function setupInstantLoading(
|
||||
switchMap(ev => {
|
||||
if (ev.target instanceof HTMLElement) {
|
||||
const el = ev.target.closest("a")
|
||||
if (el && isLocalLocation(el)) {
|
||||
if (el && !el.target && isLocalLocation(el)) {
|
||||
if (!isAnchorLocation(el))
|
||||
ev.preventDefault()
|
||||
return of(el)
|
||||
|
Loading…
Reference in New Issue
Block a user