From: Robert Kaiser Date: Fri, 28 Mar 2014 21:25:28 +0000 (+0100) Subject: make this work with pre-23 versions of Gecko by supporting mozRequestAnimationFrame X-Git-Tag: producution~37 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=41e2dba2ac81dfd8eba2aafa05709fead8dc8f07;p=lantea.git make this work with pre-23 versions of Gecko by supporting mozRequestAnimationFrame --- 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;