hotfix on refresh from wiki page (throttling)

assymetric-collaboration
Fabien Benetou 2 years ago
parent 737f36b4e6
commit 6b9d891cd6
  1. 2
      index.html

@ -1526,6 +1526,7 @@ AFRAME.registerComponent('glossary', {
AFRAME.registerComponent('fot', { AFRAME.registerComponent('fot', {
init:function(){ init:function(){
this.tick = AFRAME.utils.throttleTick(this.tick, 500, this)
}, },
tick: function(){ tick: function(){
let generatorName = this.attrName let generatorName = this.attrName
@ -2433,6 +2434,7 @@ AFRAME.registerComponent('refresh-text-content-from-wiki-page', {
this.added = [] this.added = []
let = forcedPagename = AFRAME.utils.getUrlParameter('roomname') let = forcedPagename = AFRAME.utils.getUrlParameter('roomname')
forcedPagename?this.pagename=forcedPagename:this.pagename=this.data.pagename forcedPagename?this.pagename=forcedPagename:this.pagename=this.data.pagename
this.tick = AFRAME.utils.throttleTick(this.tick, 500, this)
}, },
tick: function(){ tick: function(){
let generatorName = this.attrName let generatorName = this.attrName

Loading…
Cancel
Save