thumbmarkjs
Advanced tools
Comparing version 0.11.3-rc1 to 0.11.4
@@ -6,2 +6,8 @@ "use strict"; | ||
function getBrowser() { | ||
if (typeof navigator === 'undefined') { | ||
return { | ||
name: "unknown", | ||
version: "unknown" | ||
}; | ||
} | ||
var ua = navigator.userAgent; | ||
@@ -8,0 +14,0 @@ // Define some regular expressions to match different browsers and their versions |
@@ -23,3 +23,4 @@ "use strict"; | ||
var includeComponent = function (name, creationFunction) { | ||
exports.components[name] = creationFunction; | ||
if (typeof window !== 'undefined') | ||
exports.components[name] = creationFunction; | ||
}; | ||
@@ -26,0 +27,0 @@ exports.includeComponent = includeComponent; |
{ | ||
"name": "thumbmarkjs", | ||
"version": "0.11.3-rc1", | ||
"version": "0.11.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -40,8 +40,7 @@ # ThumbmarkJS | ||
You can also get any previous version from the CDN by replacing `latest` with the version number. Currently the URL would be | ||
`https://cdn.thumbmarkjs.com/0.11.2/Thumbmark.js` | ||
`https://cdn.thumbmarkjs.com/0.11.4/Thumbmark.js` | ||
## Install with NPM | ||
The npm package is called `thumbmarkjs` | ||
so, install it with | ||
Installing from NPM: | ||
@@ -52,3 +51,3 @@ ``` | ||
But bear in mind that the library is meant to be running in the browser. Trying to run your code through node will fail. | ||
But bear in mind that the library is meant to be running in the browser. Let me know if the library fails on a server side import. However, `getFingerprint()` is not meant to be called server side. | ||
@@ -55,0 +54,0 @@ ## Build it yourself |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
88583
1271
97