1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +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>
{% endblock %}
{% 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"] %}
<script src="{{ path | url }}"></script>
{% 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
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
//# sourceMappingURL=bundle.b76a2349.min.js
//# sourceMappingURL=bundle.fbf44fce.min.js

View File

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

View File

@ -20,7 +20,7 @@
* IN THE SOFTWARE.
*/
import { BehaviorSubject, Subject } from "rxjs"
import { Subject } from "rxjs"
/* ----------------------------------------------------------------------------
* Functions
@ -57,5 +57,5 @@ export function setLocation(url: URL): void {
* @returns Location subject
*/
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$
.pipe(
distinctUntilKeyChanged("pathname"),
skip(1),
switchMap(url => request(url.href)
.pipe(
catchError(() => {