Hide tabs by default, add code to Vimish to show/hide tabs
[WebThing.git] / plugins / DefaultPage.cs
index e1a0010..e0f65d6 100644 (file)
@@ -1,8 +1,12 @@
 using System;
 using bytex64.WebThing;
 
-public class Plugin {
-       public Plugin(WebThing wt) {
-               wt.WebView.Open("http://dominionofawesome.com/");
-       }
+public class DefaultPage : WebThingPlugin {
+    public override void Init(WebThing wt) {
+        if (wt.Arguments.Length > 0) {
+            wt.OpenUri(wt.Arguments[0]);
+        } else {
+            wt.OpenUri("http://dominionofawesome.com/");
+        }
+    }
 }