diff options
Diffstat (limited to 'core/src/OC/appconfig.js')
-rw-r--r-- | core/src/OC/appconfig.js | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/core/src/OC/appconfig.js b/core/src/OC/appconfig.js index 1248475ce77..37fc3ca420d 100644 --- a/core/src/OC/appconfig.js +++ b/core/src/OC/appconfig.js @@ -1,3 +1,4 @@ +/* eslint-disable */ /** * @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com> * @@ -18,7 +19,7 @@ * */ -import {getValue, setValue, getApps, getKeys, deleteKey} from '../OCP/appconfig' + import { getValue, setValue, getApps, getKeys, deleteKey } from '../OCP/appconfig' export const appConfig = window.oc_appconfig || {} @@ -30,42 +31,42 @@ export const AppConfig = { /** * @deprecated Use OCP.AppConfig.getValue() instead */ - getValue: function (app, key, defaultValue, callback) { + getValue: function(app, key, defaultValue, callback) { getValue(app, key, defaultValue, { success: callback - }); + }) }, /** * @deprecated Use OCP.AppConfig.setValue() instead */ - setValue: function (app, key, value) { - setValue(app, key, value); + setValue: function(app, key, value) { + setValue(app, key, value) }, /** * @deprecated Use OCP.AppConfig.getApps() instead */ - getApps: function (callback) { + getApps: function(callback) { getApps({ success: callback - }); + }) }, /** * @deprecated Use OCP.AppConfig.getKeys() instead */ - getKeys: function (app, callback) { + getKeys: function(app, callback) { getKeys(app, { success: callback - }); + }) }, /** * @deprecated Use OCP.AppConfig.deleteKey() instead */ - deleteKey: function (app, key) { - deleteKey(app, key); + deleteKey: function(app, key) { + deleteKey(app, key) } -}; +} |