1
0
Fork 0
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:
Bill Thornton 2022-10-12 14:44:10 -04:00
parent 9d8f9c806c
commit e0013915fd
6 changed files with 26 additions and 31 deletions

View file

@ -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),