Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 { | 5 { |
6 "manifest_version": 2, | 6 "manifest_version": 2, |
7 {%- if releaseBuild %} | 7 {%- if releaseBuild %} |
8 "name": "__MSG_name__", | 8 "name": "__MSG_name__", |
9 {%- else %} | 9 {%- else %} |
10 "name": "__MSG_name_devbuild__", | 10 "name": "__MSG_name_devbuild__", |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 {%- endif %} | 104 {%- endif %} |
105 | 105 |
106 {%- if contentScripts %} | 106 {%- if contentScripts %} |
107 "content_scripts": {{contentScripts|json}}, | 107 "content_scripts": {{contentScripts|json}}, |
108 {%- endif %} | 108 {%- endif %} |
109 | 109 |
110 {%- if webAccessible %} | 110 {%- if webAccessible %} |
111 "web_accessible_resources": {{webAccessible|json}}, | 111 "web_accessible_resources": {{webAccessible|json}}, |
112 {%- endif %} | 112 {%- endif %} |
113 | 113 |
114 {%- if externallyConnectable %} | |
115 "externally_connectable": { | |
116 {% for key in externallyConnectable %} | |
117 "{{key}}": {{externallyConnectable[key]|json}}{%- if not loop.last -%},{ %- endif -%} | |
118 {% endfor %} | |
119 }, | |
120 {%- endif %} | |
Sebastian Noack
2018/04/12 15:10:49
I just noticed, so we still have to add each suppo
tlucas
2018/04/12 15:29:30
Uh. good catch. on it.
tlucas
2018/04/13 09:14:59
Done.
| |
121 | |
114 {%- if metadata.has_option('general', 'managedStorageSchema') %} | 122 {%- if metadata.has_option('general', 'managedStorageSchema') %} |
115 "storage": { | 123 "storage": { |
116 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} | 124 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} |
117 }, | 125 }, |
118 {%- endif %} | 126 {%- endif %} |
119 | 127 |
120 {%- if metadata.has_option('general', 'contentSecurityPolicy') %} | 128 {%- if metadata.has_option('general', 'contentSecurityPolicy') %} |
121 "content_security_policy": {{metadata.get('general', 'contentSecurityPolicy')| json}}, | 129 "content_security_policy": {{metadata.get('general', 'contentSecurityPolicy')| json}}, |
122 {%- endif %} | 130 {%- endif %} |
123 | 131 |
124 "_dummy": false | 132 "_dummy": false |
125 } | 133 } |
OLD | NEW |