diff --git a/extension/options.jsx b/extension/options.jsx index 60bd011..c7cfb68 100644 --- a/extension/options.jsx +++ b/extension/options.jsx @@ -67,7 +67,7 @@ function Options() { list.push({ host, type, - accept: {true: 'allow', false: 'deny'}[accept], + accept, conditions, created_at }) @@ -242,7 +242,7 @@ function Options() { {host} {type} - {accept} + {accept === 'true' ? 'allow' : 'deny'} {conditions.kinds ? `kinds: ${Object.keys(conditions.kinds).join(', ')}` @@ -365,7 +365,7 @@ function Options() { if ( window.confirm( `revoke all ${ - accept ? 'accept' : 'deny' + accept === 'true' ? 'accept' : 'deny' } ${type} policies from ${host}?` ) ) {