From 4f265522e1ac05ef2c10140019da73e1c4def162 Mon Sep 17 00:00:00 2001
From: David Lu <david.lu@hotmail.com>
Date: Fri, 20 May 2016 14:45:30 -0400
Subject: Fixed JS errors, wrapped around nav shortcuts (#3067)

---
 webapp/utils/utils.jsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'webapp/utils/utils.jsx')

diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index e2ca06837..2a933ae9c 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -1408,6 +1408,10 @@ export function localizeMessage(id, defaultMessage) {
     return id;
 }
 
+export function mod(a, b) {
+    return ((a % b) + b) % b;
+}
+
 export function getProfilePicSrcForPost(post, timestamp) {
     let src = Client.getUsersRoute() + '/' + post.user_id + '/image?time=' + timestamp;
     if (post.props && post.props.from_webhook && global.window.mm_config.EnablePostIconOverride === 'true') {
-- 
cgit v1.2.3-1-g7c22

