-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/");
+ }
+ }