Revert "FIX: makes click-interceptor working with touchstart (#6890)"
This reverts commit fd2dd8d67d
.
This commit is contained in:
parent
fd2dd8d67d
commit
98f26bcaf5
|
@ -4,7 +4,7 @@ import DiscourseURL from "discourse/lib/url";
|
||||||
export default {
|
export default {
|
||||||
name: "click-interceptor",
|
name: "click-interceptor",
|
||||||
initialize() {
|
initialize() {
|
||||||
$("#main").on("touchstart.discourse click.discourse", "a", interceptClick);
|
$("#main").on("click.discourse", "a", interceptClick);
|
||||||
$(window).on("hashchange", () =>
|
$(window).on("hashchange", () =>
|
||||||
DiscourseURL.routeTo(document.location.hash)
|
DiscourseURL.routeTo(document.location.hash)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue