X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fui.js;h=c2f64af6871f19ef2aa58580807a733e8163e1ac;hp=650b9cee6a36ae904bc358d2265ed0cbd60e82a5;hb=41e2dba2ac81dfd8eba2aafa05709fead8dc8f07;hpb=a56cbb34640181d9e0943a2a7b7bafc13bd4f643;ds=sidebyside 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;