From 87fe0dd7cd69c5117dcbba284387d943c2b83c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 31 Dec 2016 06:50:08 +0100 Subject: [PATCH] Fix typo. --- src/node/extend.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node/extend.js b/src/node/extend.js index a69b4dba..831f93a6 100644 --- a/src/node/extend.js +++ b/src/node/extend.js @@ -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