Skip to content

Commit

Permalink
support SDK_ROOT that does not havce a trailing slash.
Browse files Browse the repository at this point in the history
  • Loading branch information
canuckistani committed May 14, 2012
1 parent 966dde3 commit 6bda231
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/loader.js
Expand Up @@ -26,6 +26,9 @@ function normalize(uri) {


self.port.on('pathChange', function(path) { self.port.on('pathChange', function(path) {
let SDK_ROOT = path let SDK_ROOT = path
if (SDK_ROOT.subtr(-1) !== '/')
SDK_ROOT += '/'

function resolve(id, requirer) { function resolve(id, requirer) {
let uri = null let uri = null
if (loader && id in loader.modules) if (loader && id in loader.modules)
Expand Down

0 comments on commit 6bda231

Please sign in to comment.