Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
version 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbuechele committed Apr 15, 2015
1 parent 0de0aa2 commit 2dff00f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Goofy/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, WKNavigationDelegate, WKUIDe
let path = NSBundle.mainBundle().objectForInfoDictionaryKey("PROJECT_DIR") as! String
var source = String(contentsOfFile: path+"/server/dist/fb.js", encoding: NSUTF8StringEncoding, error: nil)!+"init();"
#else
let version = NSBundle.mainBundle().infoDictionary!["CFBundleShortVersionString"] as String!
let version = NSBundle.mainBundle().infoDictionary!["CFBundleShortVersionString"] as! String
var jsurl = "https://dani.taurus.uberspace.de/goofyapp/fb" + version + ".js"
if (NSBundle.mainBundle().objectForInfoDictionaryKey("GoofyJavaScriptURL") != nil) {
jsurl = NSBundle.mainBundle().objectForInfoDictionaryKey("GoofyJavaScriptURL") as String!
jsurl = NSBundle.mainBundle().objectForInfoDictionaryKey("GoofyJavaScriptURL") as! String
}
let source = "function getScript(url,success){ var script = document.createElement('script'); script.src = url; var head = document.getElementsByTagName('head')[0], done=false; script.onload = script.onreadystatechange = function(){ if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) { done=true; success(); script.onload = script.onreadystatechange = null; head.removeChild(script); } }; head.appendChild(script); }" +
"getScript('" + jsurl + "', function() {init();});"
Expand Down
4 changes: 2 additions & 2 deletions Goofy/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.2</string>
<string>2.0.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>579</string>
<string>581</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.social-networking</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 2dff00f

Please sign in to comment.