aboutsummaryrefslogtreecommitdiff
path: root/js/loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/loader.js')
-rw-r--r--js/loader.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/loader.js b/js/loader.js
index 84c2342..8bff3b2 100644
--- a/js/loader.js
+++ b/js/loader.js
@@ -1,4 +1,6 @@
$(document).ready(function() {
// translate search result type
- OC.search.resultTypes.note = 'Note';
-}); \ No newline at end of file
+ if (OC.search !== undefined) {
+ OC.search.resultTypes.note = 'Note';
+ }
+});