X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=plugins%2FDefaultPage.cs;h=f7076e5a3705748daacbc817681c5cba1acc0193;hb=e754c4d8175a3e5b381d27b8eb5a11a8d6085d7f;hp=38ed6721b8ab414c76061699d470bd254c2236a2;hpb=80865e6b884a4bb289cb4a835a6fa66b3529c872;p=WebThing.git diff --git a/plugins/DefaultPage.cs b/plugins/DefaultPage.cs index 38ed672..f7076e5 100644 --- a/plugins/DefaultPage.cs +++ b/plugins/DefaultPage.cs @@ -2,9 +2,11 @@ using System; using bytex64.WebThing; public class DefaultPage : WebThingPlugin { - public void Init(WebThing wt) { - if (wt.Arguments.Length > 0) { - wt.OpenUri(wt.Arguments[0]); + public override void Init(WebThing wt) { + if (Config.Arguments.Length > 0) { + wt.OpenUri(Config.Arguments[0]); + } else if (Config.Options.ContainsKey("DefaultPage")) { + wt.OpenUri(Config.Options["DefaultPage"]); } else { wt.OpenUri("http://dominionofawesome.com/"); }