mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Allow passing args to UWP app from command line
This commit is contained in:
parent
0feb16fe8d
commit
7737610870
9 changed files with 34 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue