mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix recently broken support for text-paperscript mime type.
This commit is contained in:
parent
615a1281e3
commit
51df37b8ec
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ var PaperScript = this.PaperScript = new function() {
|
|||
var script = scripts[i];
|
||||
// Only load this script if it not loaded already.
|
||||
// Support both text/paperscript and text/x-paperscript:
|
||||
if (/^text\/(?:x-)paperscript$/.test(script.type)
|
||||
if (/^text\/(?:x-|)paperscript$/.test(script.type)
|
||||
&& !script.getAttribute('data-paper-loaded')) {
|
||||
// Produce a new PaperScope for this script now. Scopes are
|
||||
// cheap so let's not worry about the initial one that was
|
||||
|
|
Loading…
Reference in a new issue