diff --git a/apps/documenteditor/main/app.js b/apps/documenteditor/main/app.js
index 3cb20c44f..471759e72 100644
--- a/apps/documenteditor/main/app.js
+++ b/apps/documenteditor/main/app.js
@@ -200,37 +200,8 @@ require([
app.start();
});
}, function(err) {
- if (err.requireType == 'timeout' && !reqerr) {
- var getUrlParams = function() {
- var e,
- a = /\+/g, // Regex for replacing addition symbol with a space
- r = /([^&=]+)=?([^&]*)/g,
- d = function (s) { return decodeURIComponent(s.replace(a, " ")); },
- q = window.location.search.substring(1),
- urlParams = {};
-
- while (e = r.exec(q))
- urlParams[d(e[1])] = d(e[2]);
-
- return urlParams;
- };
-
- var encodeUrlParam = function(str) {
- return str.replace(/&/g, '&')
- .replace(/"/g, '"')
- .replace(/'/g, ''')
- .replace(//g, '>');
- };
-
- var lang = (getUrlParams()["lang"] || 'en').split("-")[0];
-
- if ( lang == 'de') reqerr = 'Die Verbindung ist zu langsam, einige Komponenten konnten nicht geladen werden. Aktualisieren Sie bitte die Seite.';
- else if ( lang == 'es') reqerr = 'La conexión es muy lenta, algunos de los componentes no han podido cargar. Por favor recargue la página.';
- else if ( lang == 'fr') reqerr = 'La connexion est trop lente, certains des composants n\'ons pas pu être chargé. Veuillez recharger la page.';
- else if ( lang == 'ru') reqerr = 'Слишком медленное соединение, не удается загрузить некоторые компоненты. Пожалуйста, обновите страницу.';
- else reqerr = 'The connection is too slow, some of the components could not be loaded. Please reload the page.';
-
+ if (err.requireType == 'timeout' && !reqerr && window.requireTimeourError) {
+ reqerr = window.requireTimeourError();
window.alert(reqerr);
window.location.reload();
}
diff --git a/apps/documenteditor/main/app_dev.js b/apps/documenteditor/main/app_dev.js
index 49d9e8fa0..ff894fd0b 100644
--- a/apps/documenteditor/main/app_dev.js
+++ b/apps/documenteditor/main/app_dev.js
@@ -191,37 +191,8 @@ require([
app.start();
});
}, function(err) {
- if (err.requireType == 'timeout' && !reqerr) {
- var getUrlParams = function() {
- var e,
- a = /\+/g, // Regex for replacing addition symbol with a space
- r = /([^&=]+)=?([^&]*)/g,
- d = function (s) { return decodeURIComponent(s.replace(a, " ")); },
- q = window.location.search.substring(1),
- urlParams = {};
-
- while (e = r.exec(q))
- urlParams[d(e[1])] = d(e[2]);
-
- return urlParams;
- };
-
- var encodeUrlParam = function(str) {
- return str.replace(/&/g, '&')
- .replace(/"/g, '"')
- .replace(/'/g, ''')
- .replace(//g, '>');
- };
-
- var lang = (getUrlParams()["lang"] || 'en').split("-")[0];
-
- if ( lang == 'de') reqerr = 'Die Verbindung ist zu langsam, einige Komponenten konnten nicht geladen werden. Aktualisieren Sie bitte die Seite.';
- else if ( lang == 'es') reqerr = 'La conexión es muy lenta, algunos de los componentes no han podido cargar. Por favor recargue la página.';
- else if ( lang == 'fr') reqerr = 'La connexion est trop lente, certains des composants n\'ons pas pu être chargé. Veuillez recharger la page.';
- else if ( lang == 'ru') reqerr = 'Слишком медленное соединение, не удается загрузить некоторые компоненты. Пожалуйста, обновите страницу.';
- else reqerr = 'The connection is too slow, some of the components could not be loaded. Please reload the page.';
-
+ if (err.requireType == 'timeout' && !reqerr && window.requireTimeourError) {
+ reqerr = window.requireTimeourError();
window.alert(reqerr);
window.location.reload();
}
diff --git a/apps/documenteditor/main/index.html b/apps/documenteditor/main/index.html
index ff57f1872..8b7823fe0 100644
--- a/apps/documenteditor/main/index.html
+++ b/apps/documenteditor/main/index.html
@@ -270,6 +270,18 @@
window.sdk_dev_scrpipts.forEach(function(item){
document.write('
diff --git a/apps/documenteditor/main/index.html.deploy b/apps/documenteditor/main/index.html.deploy
index 6a2e70bef..861c557f8 100644
--- a/apps/documenteditor/main/index.html.deploy
+++ b/apps/documenteditor/main/index.html.deploy
@@ -9,7 +9,7 @@
-
+