Hot fix font icon issue

This commit is contained in:
Buu Nguyen 2016-01-31 19:18:36 -08:00
parent 74e75cd391
commit d3336fc488
6 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,7 @@
### v2.0.4
* Fix font icons issue as GitHub switches to SVG
* Fix toggle button position when GitLab is in compact mode
### v2.0.3
* Fix bug cannot load Octotree in GitHub Enterprise
* No longer need to login to GitLab before showing tree

BIN
fonts/octicons.woff Normal file

Binary file not shown.

View File

@ -67,6 +67,7 @@ gulp.task('chrome:js', ['chrome:template', 'lib:ondemand'], () => {
gulp.task('chrome', ['chrome:js'], () => {
return merge(
pipe('./icons/**/*', './tmp/chrome/icons'),
pipe('./fonts/**/*', './tmp/chrome/fonts'),
pipe(['./libs/**/*', '!./libs/ondemand{,/**}', './tmp/octotree.*', './tmp/ondemand.js', './src/config/chrome/manifest.json'], './tmp/chrome/'),
pipe('./src/config/chrome/background.js', $.babel(), './tmp/chrome/')
)

View File

@ -1,6 +1,6 @@
{
"name": "octotree",
"version": "2.0.3",
"version": "2.0.4",
"description": "Code tree for GitHub and GitLab",
"main": "inject.js",
"scripts": {

View File

@ -1,3 +1,10 @@
@font-face {
font-family: 'octicons';
src: url('chrome-extension://__MSG_@@extension_id__/fonts/octicons.woff') format('woff');
font-weight: normal;
font-style: normal;
}
.octotree {
.octotree_github_only {
display: none;

View File

@ -19,5 +19,8 @@
"background": {
"scripts": [ "background.js" ],
"persistent": false
}
},
"web_accessible_resources": [
"fonts/*.woff"
]
}