mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Ignore hash when comparing PaperScript URLs.
This commit is contained in:
parent
4b19f99183
commit
992366246d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue