Browse Source

Disable stickers preload once in 15min

Closes #812
master
Igor Zhukov 10 years ago
parent
commit
875932bcba
  1. 5
      app/js/services.js

5
app/js/services.js

@ -3682,14 +3682,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
if (!started) { if (!started) {
started = true; started = true;
setTimeout(getStickers, 1000); setTimeout(getStickers, 1000);
setInterval(preloadStickers, 900000);
} }
} }
function preloadStickers() {
getStickers().then(getStickersImages);
}
function processRawStickers(stickers) { function processRawStickers(stickers) {
if (applied !== stickers.hash) { if (applied !== stickers.hash) {
applied = stickers.hash; applied = stickers.hash;

Loading…
Cancel
Save