Skip to content

Commit 5d398c3

Browse files
authored
Update README.md
1 parent 54a4c22 commit 5d398c3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@ This tiny web page allows you to instantly generate a canvas fingerprint for you
44

55
<img src='./fingerprint.png'>
66

7+
78
## Installation
89

910
```sh
1011
$ npx serve .
1112
```
1213

14+
You can also driectly copy-and-paste the code below into your projects to add fingerprinting functionality.
1315

14-
## Implementation
15-
16-
An unminified version of the core fingerprinting code is given below. Simply copy-and-paste this into your own projects to aquire the functionality.
1716

1817
```js
19-
(async function createCanvasFingerprint() {
18+
async function createCanvasFingerprint() {
2019

2120
// Create a canvas context...
2221

@@ -37,7 +36,7 @@ An unminified version of the core fingerprinting code is given below. Simply cop
3736
canvasFingerprint = btoa(canvasFingerprint)
3837

3938
return canvasFingerprint
40-
})()
39+
}
4140
```
4241

4342

0 commit comments

Comments
 (0)