X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=plugins%2FDefaultPage.cs;h=e0f65d67afb5ed7a8cbc8c3ca41202c5dcc006b5;hb=0b2e5f8fffd9ed781a1ddab279dbd6fec5c7695a;hp=9d8913ddfcec96387121a654be3977419b93b490;hpb=7bf09cef03c7fd78e599039b14a29e8a3f3eed42;p=WebThing.git diff --git a/plugins/DefaultPage.cs b/plugins/DefaultPage.cs index 9d8913d..e0f65d6 100644 --- a/plugins/DefaultPage.cs +++ b/plugins/DefaultPage.cs @@ -1,12 +1,12 @@ using System; using bytex64.WebThing; -public class Plugin { - public Plugin(WebThing wt) { - if (wt.Arguments.Length > 0) { - wt.OpenUri(wt.Arguments[0]); - } else { - wt.OpenUri("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/"); + } + } }