mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Enable eslint sonar prefer-object-literal
This commit is contained in:
parent
9d8f9c806c
commit
e0013915fd
6 changed files with 26 additions and 31 deletions
|
@ -7,9 +7,11 @@ import Dashboard from '../../../utils/dashboard';
|
|||
function save(page) {
|
||||
loading.show();
|
||||
const apiClient = ApiClient;
|
||||
const config = {};
|
||||
config.EnableRemoteAccess = page.querySelector('#chkRemoteAccess').checked;
|
||||
config.EnableAutomaticPortMapping = page.querySelector('#chkEnableUpnp').checked;
|
||||
const config = {
|
||||
EnableRemoteAccess: page.querySelector('#chkRemoteAccess').checked,
|
||||
EnableAutomaticPortMapping: page.querySelector('#chkEnableUpnp').checked
|
||||
};
|
||||
|
||||
apiClient.ajax({
|
||||
type: 'POST',
|
||||
data: JSON.stringify(config),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue