Skip to content

Commit b02652e

Browse files
committed
gh-pages added
1 parent 848e10b commit b02652e

File tree

4 files changed

+90
-42
lines changed

4 files changed

+90
-42
lines changed

gh-pages/index.html

+2-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<main>
1111
<h1>Browser, please</h1>
1212

13-
<h3>Yet another library to determine the browser by useragent</h3>
13+
<h3>Yet another JavaScript library to determine the browser by useragent</h3>
1414

1515
<h4>How to use:</h4>
1616

@@ -20,11 +20,7 @@ <h4>How to use:</h4>
2020

2121
<p>Try it yourself in the console!</p>
2222

23-
<!-- todo: link to readme.md -->
24-
<!-- install -->
25-
<!-- usage -->
26-
<!-- why... -->
27-
<p>More info <a href="https://github.com">at github</a>.</p>
23+
<p>More info <a href="https://github.com/dartess/browser-please/">at github</a>.</p>
2824

2925
<h4>Demo:</h4>
3026

package-lock.json

+82-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"build": "gulp",
1111
"mocha": "mocha",
1212
"eslint": "./node_modules/.bin/eslint src/parseBrowser.js",
13-
"test": "npm run mocha && npm run eslint"
13+
"test": "npm run mocha && npm run eslint",
14+
"pages": "node -e \"require('gh-pages').publish('gh-pages', function(){process.exit(1)})\""
1415
},
1516
"keywords": [
1617
"useragent",
@@ -32,5 +33,8 @@
3233
"gulp-uglify": "^3.0.0",
3334
"jsdom": "^11.9.0",
3435
"mocha": "^5.1.1"
36+
},
37+
"dependencies": {
38+
"gh-pages": "^1.1.0"
3539
}
3640
}

src/parseBrowser.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,9 @@ function parseBrowserPlatform(ua, browser) {
149149
let platform;
150150

151151
switch (browser) {
152-
case 'Explorer': {
152+
case 'Explorer':
153153
platform = 'win';
154154
break;
155-
}
156155
case 'ExplorerMobile':
157156
platform = 'winphone';
158157
break;

0 commit comments

Comments
 (0)