From 274f9fc7a88bca98b5d95c7cd58b558636992d56 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 4 Feb 2020 02:00:26 +0000 Subject: [PATCH] typo --- ext/handle_static/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/handle_static/script.js b/ext/handle_static/script.js index 8e586949..cc6550d2 100644 --- a/ext/handle_static/script.js +++ b/ext/handle_static/script.js @@ -77,8 +77,8 @@ $(document).ready(function() { $(document).keyup(function(e) { if($(e.target).is('input', 'textarea')){ return; } if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) { return; } - if (e.keyCode == 37 && $("[rel='prev']").length) { - window.location.href = $("[rel='pref']").attr("href"); + if (e.keyCode == 37 && $("[rel='previous']").length) { + window.location.href = $("[rel='previous']").attr("href"); } else if (e.keyCode == 39 && $("[rel='next']").length) { window.location.href = $("[rel='next']").attr("href");