Pomo icon indicating copy to clipboard operation
Pomo copied to clipboard

get message wrong for context

Open osapon opened this issue 6 years ago • 0 comments

I tried to get a context message and found it.

--- a/src/dist/pomo.js
+++ b/src/dist/pomo.js
@@ -854,8 +854,8 @@ var Pomo = function () {
             var entry = me.storage.contents[domain][escaped];
             if (!!context) {
                 for (var i = 0, j = entry.length; i < j; i++) {
-                    if (entry.context && entry.context === context) {
-                        translation = entry[i];
+                    if (entry[i].context && entry[i].context === context) {
+                        entry = entry[i];
                         break;
                     }
                 }

osapon avatar Apr 13 '18 13:04 osapon