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