[inject.js] Add 'blog' to reserved usernames list

Disable URLs like <https://github.com/blog/broadcasts>
This commit is contained in:
Behnam Esfahbod 2014-05-13 15:43:51 -07:00
parent 2d46b30a7d
commit 22d5c7f8c0
1 changed files with 2 additions and 2 deletions

View File

@ -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)
} }
} }
})() })()