diff --git a/js/app.js b/js/app.js index 5012a86..cfc1b48 100644 --- a/js/app.js +++ b/js/app.js @@ -20,7 +20,10 @@ 'use strict'; -(function(OCA) { +/** global: OCA */ +/** global: OC */ + +(function(OC, OCA) { OCA.DataRequest = OCA.DataRequest || {}; OCA.DataRequest.App = { @@ -70,4 +73,4 @@ }); } }; -})(OCA); +})(OC, OCA); diff --git a/js/init.js b/js/init.js index 09cd06c..43a1f3f 100644 --- a/js/init.js +++ b/js/init.js @@ -20,6 +20,8 @@ 'use strict'; +/** global: OCA */ + $(document).ready(function() { OCA.DataRequest.App.init(); });