From a780fa3babd7d16847c3d0c4c9b3f6704d5d37f2 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 14 Nov 2018 15:22:38 -0800 Subject: [PATCH] Fix reference to nonexistent variable --- js/modules/refresh_sender_certificate.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/modules/refresh_sender_certificate.js b/js/modules/refresh_sender_certificate.js index 83acef60d..275453fda 100644 --- a/js/modules/refresh_sender_certificate.js +++ b/js/modules/refresh_sender_certificate.js @@ -29,11 +29,7 @@ function initialize({ events, storage, navigator, logger }) { runWhenOnline(); - events.on('timetravel', () => { - if (initialized) { - scheduleNextRotation(); - } - }); + events.on('timetravel', scheduleNextRotation); function scheduleNextRotation() { const now = Date.now();