Skip to content

Commit

Permalink
fix #28 Compatible with IE.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 29, 2018
1 parent c0f5b70 commit a527487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function hotkeys(key, option, method) {
method = option;
}

if (toString.call(option) === '[object Object]') {
if (Object.prototype.toString.call(option) === '[object Object]') {
if (option.scope) scope = option.scope; // eslint-disable-line
if (option.element) element = option.element; // eslint-disable-line
}
Expand Down

0 comments on commit a527487

Please sign in to comment.