Skip to content

Commit

Permalink
syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed Aug 29, 2017
1 parent 83154da commit a6d65e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/shift-clay.js
Expand Up @@ -26,7 +26,7 @@ export default function addListeners() {
document.addEventListener('keydown', function (e) {
const key = keycode(e);

if (includes(['c', 'l', 'a', 'y'], key) && e.shiftKey === true) {
if (_.includes(['c', 'l', 'a', 'y'], key) && e.shiftKey === true) {
secretKilnKey += key;
} else {
// if we hit any other character, reset the key
Expand All @@ -36,7 +36,7 @@ export default function addListeners() {
// check secret key
if (secretKilnKey === 'clay') {
showLogo();
} else if (secretKilnKey.length > 4 && includes(secretKilnKey, 'clay')) {
} else if (secretKilnKey.length > 4 && _.includes(secretKilnKey, 'clay')) {
toggleEdit();
} else if (secretKilnKey.length > 4) {
// if we hit more than four characters, reset the key
Expand Down

0 comments on commit a6d65e8

Please sign in to comment.