Fix typo.

This commit is contained in:
Jürg Lehni 2016-12-31 06:50:08 +01:00
parent c21e19b303
commit 87fe0dd7cd

View file

@ -15,7 +15,7 @@ var fs = require('fs'),
module.exports = function(paper) {
if (paper.PaperScript) {
var sourceMapSupprt = 'require("source-map-support").install(paper.PaperScript.sourceMapSupport);\n',
var sourceMapSupport = 'require("source-map-support").install(paper.PaperScript.sourceMapSupport);\n',
sourceMaps = {};
paper.PaperScript.sourceMapSupport = {
@ -32,12 +32,12 @@ module.exports = function(paper) {
// PaperScope.
module.exports = function(canvas) {
var source = fs.readFileSync(filename, 'utf8'),
code = sourceMapSupprt + source,
code = sourceMapSupport + source,
compiled = paper.PaperScript.compile(code, {
url: filename,
source: source,
sourceMaps: true,
offset: -1 // remove sourceMapSupprt...
offset: -1 // remove sourceMapSupport...
}),
scope = new paper.PaperScope();
// Keep track of sourceMaps so retrieveSourceMap() can link them up