Merge pull request #14 from behnam/patch-1

[inject.js] Add 'blog' to reserved usernames list
This commit is contained in:
Buu Nguyen 2014-05-13 15:52:45 -07:00
commit a3cae538af
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@
if (!match) return false
// 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)
// and show it again when users navigate back to the code area
@ -192,4 +192,4 @@
return localStorage.removeItem(key)
}
}
})()
})()