From a580e54c5b83c3c5f1bf4d7d8e045ef909bd2fc3 Mon Sep 17 00:00:00 2001 From: Maggie Delano Date: Fri, 2 Oct 2015 17:01:53 -0400 Subject: [PATCH] Fixed bug where extension was not displaying total pomodoros completed in months 10 or greater. --- background.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/background.js b/background.js index 76fc630..fecf75f 100644 --- a/background.js +++ b/background.js @@ -397,10 +397,14 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse){ if (dd<10) { dd='0'+dd; } + else + dd=dd.toString(); if (mm<10) { mm = '0'+mm; } + else + mm=mm.toString(); var dateString = yyyy+mm+dd;