mirror of
https://github.com/overte-org/community-apps.git
synced 2025-04-25 08:23:17 +02:00
Merge 13f83c9c11
into 3a5f3bd450
This commit is contained in:
commit
b8d696d761
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ Script.scriptEnding.connect(function(){
|
|||
|
||||
function refreshAvatar() {
|
||||
var modelURL = MyAvatar.getFullAvatarURLFromPreferences();
|
||||
modelURL = modelURL.split("?")[0] + "?" + new Date().getTime();
|
||||
modelURL = modelURL.split("#")[0] + "#" + new Date().getTime();
|
||||
MyAvatar.useFullAvatarURL(modelURL);
|
||||
console.log('Avatar refreshed: ' + modelURL);
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ function refreshAttachments() {
|
|||
for (var id in data) {
|
||||
var attachment = data[id];
|
||||
if (attachment.type.toString() === 'Model') {
|
||||
attachment.modelURL = attachment.modelURL.toString().split('?')[0] + '?' + Date.now();
|
||||
attachment.modelURL = attachment.modelURL.toString().split('#')[0] + '#' + Date.now();
|
||||
attachmentAmount++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue