diff options
| -rw-r--r-- | js/loader.js | 6 |
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'; + } +}); |
