Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to 1.1

  • Loading branch information...
commit 940e7526d88781f03f5ffe1cc72f78768ac58533 1 parent 6b214b3
@wfarr authored
Showing with 11 additions and 9 deletions.
  1. +1 −1  Info.plist
  2. +10 −8 dotjs.js
View
2  Info.plist
@@ -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
18 dotjs.js
@@ -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')
+ }
+ })
})
Please sign in to comment.
Something went wrong with that request. Please try again.