mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
[web] add runner option remove_margin
This commit is contained in:
parent
182678909f
commit
1521e560a1
|
@ -89,6 +89,13 @@ class web(Runner):
|
|||
'default': False,
|
||||
'help': ("Enable this option if you want clicked links to open inside the game window. By default all links open in your default web browser.")
|
||||
},
|
||||
{
|
||||
"option": "remove_margin",
|
||||
"label": "Remove default <body> margin & padding",
|
||||
"type": "bool",
|
||||
"default": False,
|
||||
'help': ("Sets margin and padding to zero on <html> and <body> elements.")
|
||||
},
|
||||
{
|
||||
"option": "enable_flash",
|
||||
"label": "Enable Adobe Flash Player",
|
||||
|
@ -230,6 +237,9 @@ class web(Runner):
|
|||
if self.runner_config.get("open_links"):
|
||||
command.append("--open-links")
|
||||
|
||||
if self.runner_config.get("remove_margin"):
|
||||
command.append("--remove-margin")
|
||||
|
||||
if self.runner_config.get("devtools"):
|
||||
command.append("--devtools")
|
||||
|
||||
|
|
Loading…
Reference in a new issue