| Conditions | 5 | 
| Paths | 4 | 
| Total Lines | 19 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | /** | ||
| 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 */ | ||
| 36 |