[extensions-web/bugfix/v40-frontend-versionscheme: 1/2] js: main: fix usage of server response




commit 24cf1b3e590d26e02f78c99540f711a2a0ae40b8
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sat Feb 27 11:57:06 2021 +0400

    js: main: fix usage of server response

 sweettooth/static/js/main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index 290cfed0..94b156d6 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -192,7 +192,7 @@ function($, messages, modal, hashParamUtils, commentsTemplate, staticfiles, cook
             });
 
             req.done(function(data) {
-                $ext.data('svm', data.svm);
+                $ext.data('svm', JSON.parse(data.svm));
                 $('#extension_shell_versions_info').buildShellVersionsInfo();
                 $tr.find('.mvs').html(data.mvs);
                 $tr.find('.extension_status_toggle').toggleClass('visible');


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