Skip to content

Commit c7bde2d

Browse files
committed
Formatting
1 parent de46c41 commit c7bde2d

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

material/templates/assets/javascripts/bundle.cee5e008.min.js renamed to material/templates/assets/javascripts/bundle.553b3b51.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/javascripts/bundle.cee5e008.min.js.map renamed to material/templates/assets/javascripts/bundle.553b3b51.min.js.map

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

material/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
</script>
250250
{% endblock %}
251251
{% block scripts %}
252-
<script src="{{ 'assets/javascripts/bundle.cee5e008.min.js' | url }}"></script>
252+
<script src="{{ 'assets/javascripts/bundle.553b3b51.min.js' | url }}"></script>
253253
{% for script in config.extra_javascript %}
254254
{{ script | script_tag }}
255255
{% endfor %}

src/templates/assets/javascripts/integrations/instant/index.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function resolve(document: Document): Observable<Document> {
168168
}
169169

170170
/**
171-
* Create a map of head elements for lookup and replacement
171+
* Inject the contents of a document into the current one
172172
*
173173
* @param next - Next document
174174
*
@@ -327,8 +327,8 @@ export function setupInstantNavigation(
327327
// that are not needed anymore, e.g., when the user clicks multiple links in
328328
// quick succession or on slow connections. If the request fails for some
329329
// reason, we fall back and use regular navigation, forcing a reload.
330-
const document$ = location$
331-
.pipe(
330+
const document$ =
331+
location$.pipe(
332332
distinctUntilKeyChanged("pathname"),
333333
switchMap(url => requestHTML(url, { progress$ })
334334
.pipe(
@@ -421,15 +421,14 @@ export function setupInstantNavigation(
421421
// and forth between pages. Note that this must be debounced and cannot be
422422
// done in popstate, as popstate has already removed the entry from the
423423
// history, which means it is too late.
424-
viewport$
425-
.pipe(
426-
distinctUntilKeyChanged("offset"),
427-
debounceTime(100)
428-
)
429-
.subscribe(({ offset }) => {
430-
history.replaceState(offset, "")
431-
})
424+
viewport$.pipe(
425+
distinctUntilKeyChanged("offset"),
426+
debounceTime(100)
427+
)
428+
.subscribe(({ offset }) => {
429+
history.replaceState(offset, "")
430+
})
432431

433-
// Return document
432+
// Return document observable
434433
return document$
435434
}

0 commit comments

Comments
 (0)