Ignore hash when comparing PaperScript URLs.

This commit is contained in:
Jürg Lehni 2014-08-25 12:20:58 +02:00
parent 4b19f99183
commit 992366246d

View file

@ -272,7 +272,7 @@ Base.exports.PaperScript = (function() {
|| browser.webkit && version >= 537.76 // >= Safari 7.0.4
|| browser.firefox && version >= 23) {
var offset = 0;
if (url === window.location.href) {
if (window.location.href.indexOf(url) === 0) {
// If the code stems from the actual html page, determine the
// offset of inlined code.
var html = document.getElementsByTagName('html')[0].innerHTML;