diff --git a/Docs/AutoUpdate.md b/Docs/AutoUpdate.md index aaa5ed4..8c24c58 100644 --- a/Docs/AutoUpdate.md +++ b/Docs/AutoUpdate.md @@ -2,7 +2,7 @@ ## AppCast.xml -To enable auto update, you need to prepare an **AppCast.xml** ([sample](https://github.com/HackPlan/menubar-webkit/blob/updater/updater/SampleAppcast.xml)) like this: +To enable auto update, you need to prepare an **AppCast.xml** ([sample](https://github.com/HackPlan/menubar-webkit/blob/master/updater/SampleAppcast.xml)) like this: ```xml @@ -32,8 +32,8 @@ For safety reasons, you have to code sign your app properly to enable auto updat We provide two JavaScript APIs for checking update, both require an URL to AppCast.xml: ```js -mw.checkUpdate("https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml") -mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml") +mw.checkUpdate("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml") +mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml") ``` ## Under the Hood diff --git a/README.md b/README.md index 5c44040..31b12ef 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,8 @@ mw.unpin() ```js // Check for update -mw.checkUpdate("https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml") -mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml") +mw.checkUpdate("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml") +mw.checkUpdateInBackground("https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml") ``` More detail: [AutoUpdate.md](Docs/AutoUpdate.md) diff --git a/menubar-webkit/LDYWebViewDelegate.m b/menubar-webkit/LDYWebViewDelegate.m index a79a8a2..6e66e00 100644 --- a/menubar-webkit/LDYWebViewDelegate.m +++ b/menubar-webkit/LDYWebViewDelegate.m @@ -27,7 +27,7 @@ static NSString * const kWebScriptNamespace = @"mw"; + (void)initialize { - [[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@"WebKitDeveloperExtras"]; + [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"WebKitDeveloperExtras"]; [[NSUserDefaults standardUserDefaults] synchronize]; } diff --git a/sample/index.html b/sample/index.html index d929e7a..e33535d 100644 --- a/sample/index.html +++ b/sample/index.html @@ -69,7 +69,7 @@

- +

diff --git a/updater/SampleAppcast.xml b/updater/SampleAppcast.xml index d8b55b9..e41c9ca 100644 --- a/updater/SampleAppcast.xml +++ b/updater/SampleAppcast.xml @@ -2,12 +2,12 @@ Menubar WebKit - https://rawgit.com/HackPlan/menubar-webkit/updater/updater/SampleAppcast.xml + https://rawgit.com/HackPlan/menubar-webkit/master/updater/SampleAppcast.xml Most recent changes with links to updates. en Version 6.23 - https://rawgit.com/HackPlan/menubar-webkit/updater/updater/ReleaseNotes.html + https://rawgit.com/HackPlan/menubar-webkit/master/updater/ReleaseNotes.html Fri, 01 Jul 2011 00:00:00 +0800 10.9