summaryrefslogtreecommitdiffstats
path: root/devtools/client/storage/ui.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-02 14:33:20 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-02 14:33:20 +0100
commit43ddb9b8c08ac148a9b03f16f45ec2cb71243f81 (patch)
tree263aac81d8f55dab14e4f51cc8b09add3b950287 /devtools/client/storage/ui.js
parent390894c822f1b163f16744646372a28c0d93a89e (diff)
downloadUXP-43ddb9b8c08ac148a9b03f16f45ec2cb71243f81.tar
UXP-43ddb9b8c08ac148a9b03f16f45ec2cb71243f81.tar.gz
UXP-43ddb9b8c08ac148a9b03f16f45ec2cb71243f81.tar.lz
UXP-43ddb9b8c08ac148a9b03f16f45ec2cb71243f81.tar.xz
UXP-43ddb9b8c08ac148a9b03f16f45ec2cb71243f81.zip
Bug 1276339: Storage inspector doesn't work on chrome:// pages and web extensions
Issue #31
Diffstat (limited to 'devtools/client/storage/ui.js')
-rw-r--r--devtools/client/storage/ui.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/devtools/client/storage/ui.js b/devtools/client/storage/ui.js
index c4dd57c6e..1241d0120 100644
--- a/devtools/client/storage/ui.js
+++ b/devtools/client/storage/ui.js
@@ -809,7 +809,10 @@ StorageUI.prototype = {
columns[f.name] = f.name;
let columnName;
try {
- columnName = L10N.getStr("table.headers." + type + "." + f.name);
+ // Path key names for l10n in the case of a string change.
+ let name = f.name === "keyPath" ? "keyPath2" : f.name;
+
+ columnName = L10N.getStr("table.headers." + type + "." + name);
} catch (e) {
columnName = COOKIE_KEY_MAP[f.name];
}