LEFT | RIGHT |
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 require.scopes.info = { | 5 require.scopes.info = { |
6 addonName: {{ metadata.get('general', 'basename')|json }}, | 6 addonName: {{ metadata.get('general', 'basename')|json }}, |
7 addonVersion: {{ version|json }}, | 7 addonVersion: {{ version|json }}, |
8 addonRoot: '', | |
9 | 8 |
10 application: 'safari', | 9 application: 'safari', |
11 get applicationVersion() { | 10 get applicationVersion() { |
12 return navigator.userAgent.match(/Version\/([\d.]+)/)[1]; | 11 return navigator.userAgent.match(/Version\/([\d.]+)/)[1]; |
13 }, | 12 }, |
| 13 |
14 platform: 'safari', | 14 platform: 'safari', |
15 get platformVersion() { | 15 get platformVersion() { |
16 return this.applicationVersion; | 16 return this.applicationVersion; |
17 } | 17 } |
18 }; | 18 }; |
LEFT | RIGHT |