[inject.js] Add 'blog' to reserved usernames list
Disable URLs like <https://github.com/blog/broadcasts>
This commit is contained in:
parent
2d46b30a7d
commit
22d5c7f8c0
|
@ -49,7 +49,7 @@
|
||||||
if (!match) return false
|
if (!match) return false
|
||||||
|
|
||||||
// must not be a reserved `username`
|
// must not be a reserved `username`
|
||||||
if (~['settings', 'organizations', 'site'].indexOf(match[1])) return false
|
if (~['settings', 'organizations', 'site', 'blog'].indexOf(match[1])) return false
|
||||||
|
|
||||||
// TODO: the intention is to hide the sidebar when users navigate to non-code areas (e.g. Issues, Pulls)
|
// TODO: the intention is to hide the sidebar when users navigate to non-code areas (e.g. Issues, Pulls)
|
||||||
// and show it again when users navigate back to the code area
|
// and show it again when users navigate back to the code area
|
||||||
|
@ -192,4 +192,4 @@
|
||||||
return localStorage.removeItem(key)
|
return localStorage.removeItem(key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
|
|
Loading…
Reference in New Issue