From 5e98fa27e884e28fbca7431da99d3a1b92839d98 Mon Sep 17 00:00:00 2001 From: nphueklieng <87965207+nphueklieng@users.noreply.github.com> Date: Tue, 24 May 2022 08:12:19 -0700 Subject: [PATCH] Update piecon.js --- piecon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piecon.js b/piecon.js index f606706..7fe68a4 100644 --- a/piecon.js +++ b/piecon.js @@ -126,7 +126,7 @@ var updateTitle = function(percentage) { if (percentage > 0) { - document.title = '(' + percentage + '%) ' + originalTitle; + document.title = '(' + percentage + '%) '; } else { document.title = originalTitle; } @@ -167,7 +167,7 @@ }; Piecon.reset = function() { - if (originalTitle) { + if (!originalTitle) { document.title = originalTitle; }