1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-02-17 18:49:21 +01:00

Fixed double triggering of analytics events

This commit is contained in:
squidfunk 2021-02-24 10:12:40 +01:00
parent fc4deb3daf
commit 1864463e5c
10 changed files with 45 additions and 46 deletions

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

File diff suppressed because one or more lines are too long

View File

@ -217,7 +217,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/bundle.926459b3.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.6e8eee23.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %} {% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

View File

@ -15,5 +15,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */ ***************************************************************************** */
//# sourceMappingURL=bundle.b76a2349.min.js //# sourceMappingURL=bundle.fbf44fce.min.js

View File

@ -53,5 +53,5 @@
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<script src="{{ 'overrides/assets/javascripts/bundle.b76a2349.min.js' | url }}"></script> <script src="{{ 'overrides/assets/javascripts/bundle.fbf44fce.min.js' | url }}"></script>
{% endblock %} {% endblock %}

View File

@ -20,7 +20,7 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
import { BehaviorSubject, Subject } from "rxjs" import { Subject } from "rxjs"
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* Functions * Functions
@ -57,5 +57,5 @@ export function setLocation(url: URL): void {
* @returns Location subject * @returns Location subject
*/ */
export function watchLocation(): Subject<URL> { export function watchLocation(): Subject<URL> {
return new BehaviorSubject<URL>(getLocation()) return new Subject<URL>()
} }

View File

@ -219,7 +219,6 @@ export function setupInstantLoading(
const response$ = location$ const response$ = location$
.pipe( .pipe(
distinctUntilKeyChanged("pathname"), distinctUntilKeyChanged("pathname"),
skip(1),
switchMap(url => request(url.href) switchMap(url => request(url.href)
.pipe( .pipe(
catchError(() => { catchError(() => {