git.cweiske.de
/
grauphel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd68a53
)
Do not crash javascript on NextCloud 20
author
Christian Weiske
<cweiske@cweiske.de>
Fri, 22 Jan 2021 05:55:53 +0000
(06:55 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Fri, 22 Jan 2021 05:55:53 +0000
(06:55 +0100)
Part of: https://github.com/cweiske/grauphel/issues/84
js/loader.js
patch
|
blob
|
history
diff --git
a/js/loader.js
b/js/loader.js
index 84c2342de14ba1b82352e31f6d128d8b1ec66940..8bff3b2766f6f6d2a18e3e687cce5216edcc4c03 100644
(file)
--- 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';
+ }
+});