From 41e2dba2ac81dfd8eba2aafa05709fead8dc8f07 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Fri, 28 Mar 2014 22:25:28 +0100 Subject: [PATCH] make this work with pre-23 versions of Gecko by supporting mozRequestAnimationFrame --- js/ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/ui.js b/js/ui.js index 650b9ce..c2f64af 100644 --- a/js/ui.js +++ b/js/ui.js @@ -2,10 +2,11 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ -// Get the best-available indexedDB object. +// Get the best-available objects for indexedDB and requestAnimationFrame. window.indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB; -var mainDB; +window.requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; +var mainDB; var gUIHideCountdown = 0; var gWaitCounter = 0; var gAction, gActionLabel; -- 2.35.3