[extensions-web] dbus.js: proceed site load on API initialize failure.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] dbus.js: proceed site load on API initialize failure.
- Date: Wed, 22 Feb 2017 15:18:41 +0000 (UTC)
commit f0fca6a67bd75112d8a0e7b50c3564e8e16b0666
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Wed Feb 22 19:18:20 2017 +0400
dbus.js: proceed site load on API initialize failure.
So user will be able to access part of site that not requires API.
See-Also:
https://git.gnome.org/browse/chrome-gnome-shell/commit/?id=9ddc84761c9a3b6a6703b2b5be32870d9b544390
sweettooth/static/js/dbus.js | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/static/js/dbus.js b/sweettooth/static/js/dbus.js
index 07174f0..8cdd963 100644
--- a/sweettooth/static/js/dbus.js
+++ b/sweettooth/static/js/dbus.js
@@ -95,9 +95,7 @@ define(['jquery'], function ($) {
{
// Browser extension
// SweetTooth.initialize should be Promise or jQuery.Deferred
- SweetTooth.initialize().then(function () {
- processLoad();
- });
+ SweetTooth.initialize().then(processLoad, processLoad);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]