Permalink
Browse files

Merge pull request #2 from canuckistani/path-prefs-handling-fix

support SDK_ROOT that does not have a trailing slash.
  • Loading branch information...
2 parents 966dde3 + 6bda231 commit 2c0402a4586fca6bd57bcf8b88fd89cf5100dc34 @Gozala committed May 14, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 data/loader.js
View
3 data/loader.js
@@ -26,6 +26,9 @@ function normalize(uri) {
self.port.on('pathChange', function(path) {
let SDK_ROOT = path
+ if (SDK_ROOT.subtr(-1) !== '/')
+ SDK_ROOT += '/'
+
function resolve(id, requirer) {
let uri = null
if (loader && id in loader.modules)

0 comments on commit 2c0402a

Please sign in to comment.