Skip to content

Commit

Permalink
[FIX] error redirecting to different page in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Dec 1, 2015
1 parent 05b9093 commit 35d78b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/resources/resources_texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ pc.extend(pc, function () {

// Call error callback with details.
image.onerror = function (event) {
var element = event.srcElement;
callback(pc.string.format("Error loading Texture from: '{0}'", element.src));
callback(pc.string.format("Error loading Texture from: '{0}'", url));
};

image.src = url;
Expand Down

0 comments on commit 35d78b5

Please sign in to comment.