Permalink
Browse files

Update to 1.1

  • Loading branch information...
1 parent 6b214b3 commit 940e7526d88781f03f5ffe1cc72f78768ac58533 @wfarr committed Feb 22, 2011
Showing with 11 additions and 9 deletions.
  1. +1 −1 Info.plist
  2. +10 −8 dotjs.js
View
@@ -11,7 +11,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>1.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>Chrome</key>
View
@@ -1,9 +1,11 @@
-$.ajax({
- url: 'http://localhost:3131/'+window.location.host.replace('www.','')+'.js',
- success: function(d){
- $(function(){ eval(d) })
- },
- error: function(){
- console.log('no dotjs server found at localhost:3131')
- }
+$.each(['default', window.location.host.replace('www.','')], function(index, name) {
+ $.ajax({
+ url: 'http://localhost:3131/'+name+'.js',
+ success: function(d){
+ $(function(){ eval(d) })
+ },
+ error: function(){
+ console.log('no dotjs server found at localhost:3131')
+ }
+ })
})

0 comments on commit 940e752

Please sign in to comment.