Skip to content

Commit 6115653

Browse files
committed
Clean up JSBrowserWindowInstance constructor
1 parent e9473b8 commit 6115653

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Electrino/win10/Electrino/JS/JSBrowserWindow.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ protected override JavaScriptValue Main(JavaScriptValue callee, bool isConstruct
3838
class JSBrowserWindowInstance : AbstractJSModule
3939
{
4040
private JToken options;
41-
// I don't really like putting this here, I think we should probably have a class that contains all our constants
42-
private const int defaultWindowWidth = 800, defaultWindowHeight = 600;
4341
private Dictionary<string, List<Tuple<JavaScriptValue, JavaScriptValue>>> listeners = new Dictionary<string, List<Tuple<JavaScriptValue, JavaScriptValue>>>();
4442

4543
public JSBrowserWindowInstance(JToken options) : base("BrowserWindowInstance")
4644
{
45+
const int defaultWindowWidth = 800, defaultWindowHeight = 600;
4746
int width = 0, height = 0;
4847
this.options = options;
4948

0 commit comments

Comments
 (0)