Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138221

URL.revokeObjectURL Clears ALL urls?

$
0
0

Right now I am making an app in Gamemaker which pairs up to my website so the game can visualize the data. I have a function that replaces the sprite. AFAIK doing

var url = URL.createObjectURL(blob);

creates a url string which can be used to view the temporary image EX:Blob:website.co/sdjasd919r1r What i did is pass the string of the url to GM and store it for reference later.

In GM I execute the JS to revoke it by doing something along these lines

 var url_string = Blob:website.co/sdjasd919r1r
 URL.revokeObjectURL('"+url_string+"') 

It Revokes the current URL but also revokes the new string that is generated when replacing the sprite meaning the old URL and the New URL both are revoked... Is that the intended action?


Viewing all articles
Browse latest Browse all 138221

Trending Articles