[chrome-gnome-shell] Increase requirejs timeout to 15 seconds.



commit da9715134c5622620677b32242d1c604cdb30905
Author: Yuri Konotopov <ykonotopov gmail com>
Date:   Sat Jul 30 22:38:54 2016 +0300

    Increase requirejs timeout to 15 seconds.
    
    Sometimes I hit timeout on first site load with default 7 seconds.

 extension/include/sweettooth-api.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/extension/include/sweettooth-api.js b/extension/include/sweettooth-api.js
index 1c08cbb..e2bf3a8 100644
--- a/extension/include/sweettooth-api.js
+++ b/extension/include/sweettooth-api.js
@@ -255,6 +255,10 @@ define('versions/common/common', ['jquery', 'dbus!API'], function($, API) {
 });
 
 gs_chrome_initialized = true;
+
+requirejs.config({
+       waitSeconds: 15 // It's fails sometimes with default 7 secs
+});
 require(['jquery', 'messages', 'gs-chrome'], function($, messages){
        var connectingInfo = GSC.getMessage('connecting_host_app');
        messages.addInfo(connectingInfo);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]