mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 12:45:58 +08:00
fix tests (#7912)
This commit is contained in:
parent
8dfd0e0374
commit
533f5172d7
@ -404,7 +404,7 @@ export default createWidget("header", {
|
|||||||
|
|
||||||
const currentPath = this.register
|
const currentPath = this.register
|
||||||
.lookup("service:router")
|
.lookup("service:router")
|
||||||
.get("router._router.currentPath");
|
.get("_router.currentPath");
|
||||||
|
|
||||||
if (currentPath === "full-page-search") {
|
if (currentPath === "full-page-search") {
|
||||||
scrollTop();
|
scrollTop();
|
||||||
@ -480,7 +480,7 @@ export default createWidget("header", {
|
|||||||
|
|
||||||
const currentPath = this.register
|
const currentPath = this.register
|
||||||
.lookup("service:router")
|
.lookup("service:router")
|
||||||
.get("router._router.currentPath");
|
.get("_router.currentPath");
|
||||||
const blacklist = [/^discovery\.categories/];
|
const blacklist = [/^discovery\.categories/];
|
||||||
const whitelist = [/^topic\./];
|
const whitelist = [/^topic\./];
|
||||||
const check = function(regex) {
|
const check = function(regex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user