Total Complexity | 6 |
Complexity/F | 3 |
Lines of Code | 26 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
10 | (function (OC, OCA, window, $) { |
||
11 | 'use strict'; |
||
12 | /** |
||
13 | * Init the App |
||
14 | */ |
||
15 | $(document).ready(function () { |
||
16 | /** We have to be in the Files App! */ |
||
17 | if (!OCA.Files || !OCA.Files.App.fileList) { |
||
18 | return; |
||
19 | } |
||
20 | /** Escape when the requested file is public.php */ |
||
21 | if (/(public)\.php/i.exec(window.location.href) !== null) { |
||
22 | return; |
||
23 | } |
||
24 | /** Check for namespace Ocr */ |
||
25 | if (!OCA.Ocr) { |
||
26 | return; |
||
27 | } |
||
28 | // Create instance |
||
29 | OCA.Ocr.$app = new OCA.Ocr.App(); |
||
30 | |||
31 | OCA.Ocr.$app.init(); |
||
32 | |||
33 | }); |
||
34 | /** global: OC, OCA */ |
||
35 | })(OC, OCA, window, jQuery); |
||
36 |