Permalink
Browse files

fix for safari

  • Loading branch information...
1 parent 58947aa commit c4f1fd2746115bafa1150ccb8a18cdc57ad45e15 @marcuswestin committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
@@ -113,7 +113,7 @@ function _handleMainModuleRequest(reqPath, req, res) {
'__require__.__scripts = []',
'__require__.__loadNext = function() {',
' var src = __require__.__scripts.shift()',
- ' var url = location.protocol + src',
+ ' var url = location.protocol+"//"+location.host + src',
' if (!src) { return }',
' document.getElementsByTagName("head")[0].appendChild(document.createElement("script")).src = url',
'}')

0 comments on commit c4f1fd2

Please sign in to comment.