X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=plugins%2FDefaultPage.cs;fp=plugins%2FDefaultPage.cs;h=f7076e5a3705748daacbc817681c5cba1acc0193;hb=85b244419aec2552d114990aa86900aeac83a7e0;hp=e0f65d67afb5ed7a8cbc8c3ca41202c5dcc006b5;hpb=d76e00c61a81db8a74b57ebd8d5abb6042164df9;p=WebThing.git diff --git a/plugins/DefaultPage.cs b/plugins/DefaultPage.cs index e0f65d6..f7076e5 100644 --- a/plugins/DefaultPage.cs +++ b/plugins/DefaultPage.cs @@ -3,8 +3,10 @@ using bytex64.WebThing; public class DefaultPage : WebThingPlugin { public override void Init(WebThing wt) { - if (wt.Arguments.Length > 0) { - wt.OpenUri(wt.Arguments[0]); + 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/"); }