Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "hotstuff", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Small Package to provide add Hotkeys easily to any element", | ||
"main": "index.js", | ||
"main": "dist/HotStuff.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
@@ -23,3 +23,4 @@ # Hotstuff | ||
const hotStuff = new HotStuff(window); | ||
const hotStuff = new HotStuff(); // by default HotStuff attaches itself to the window object if there is one | ||
// by default HotStuff attaches itself to the window object if there is one | ||
const hotStuff = new HotStuff(); | ||
``` | ||
@@ -26,0 +27,0 @@ From this point you can add hotkeys using the new `hotStuff` object using the `hotStuff.addListener` method. Both functions are optional (so if you want to just add a key up function, you can by passing null as the second argument) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22535
118