Ensure we're running in an RTD environment to prevent local doc builds from breaking.

This commit is contained in:
OrfeasZ 2017-03-20 04:53:09 +02:00
parent b1b121d8d0
commit da11202bf1

View File

@ -1,3 +1,4 @@
if (typeof window.SphinxRtdTheme !== 'undefined') {
Search.query = function(query) { Search.query = function(query) {
var i; var i;
var stopwords = {{ search_language_stop_words }}; var stopwords = {{ search_language_stop_words }};
@ -148,3 +149,4 @@ Search.query = function(query) {
} }
displayNextItem(); displayNextItem();
}; };
}