Allow passing args to UWP app from command line

This commit is contained in:
Fernando Jimenez Moreno 2019-10-23 15:55:51 +02:00
parent 0feb16fe8d
commit 7737610870
9 changed files with 34 additions and 23 deletions

View file

@ -56,12 +56,12 @@ const char* get_clipboard_contents() {
return nullptr;
}
Servo::Servo(hstring url, GLsizei width, GLsizei height, float dpi,
Servo::Servo(hstring url, hstring args, GLsizei width, GLsizei height, float dpi,
ServoDelegate &aDelegate)
: mWindowHeight(height), mWindowWidth(width), mDelegate(aDelegate) {
capi::CInitOptions o;
o.args = "--pref dom.webxr.enabled";
o.args = *hstring2char(args);
o.url = *hstring2char(url);
o.width = mWindowWidth;
o.height = mWindowHeight;