Getting useful...
[WebThing.git] / plugins / DefaultPage.cs
index e1a0010..9d8913d 100644 (file)
@@ -3,6 +3,10 @@ using bytex64.WebThing;
 
 public class Plugin {
        public Plugin(WebThing wt) {
-               wt.WebView.Open("http://dominionofawesome.com/");
+               if (wt.Arguments.Length > 0) {
+                       wt.OpenUri(wt.Arguments[0]);
+               } else {
+                       wt.OpenUri("http://dominionofawesome.com/");
+               }
        }
 }