Skip to content

Commit

Permalink
Fix manifest for edge
Browse files Browse the repository at this point in the history
  • Loading branch information
rsinger committed Mar 7, 2018
1 parent 7eaaf53 commit 2108e9e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,14 @@ module.exports = function(grunt) {
if (grunt.option('identifier')) {
manifest.applications = { 'gecko': { 'id': grunt.option('identifier') } };
}
if (browser !== 'msedge') {
if (browser === 'msedge') {
manifest.icons = [
{"sizes":"16x16", "src": "images/icon16.png"},
{"sizes": "30x30", "src": "images/icon30.png"},
{"sizes": "50x50", "src": "images/icon50.png"},
{"sizes":"120x120", "src": "images/icon120.png"}
];
} else {
delete(manifest['-ms-preload']);
}
grunt.file.write(grunt.config('distdir') + '/manifest.json', JSON.stringify(manifest, null, 2));
Expand Down
4 changes: 4 additions & 0 deletions _locales/cy/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"message": "Talis Aspire Rhestrau Darllen Offeryn Nod Tudalen",
"description": "Extension name"
},
"description": {
"message": "Talis Aspire Rhestrau Darllen Offeryn Nod Tudalen",
"description": "Extension description"
},
"browserActionTitle": {
"message": "Ychwanegu Llyfrnod at Rhestr Ddarllen",
"description": "Message when hovering over extension button"
Expand Down
4 changes: 4 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"message": "Talis Aspire Reading Lists Bookmarking",
"description": "Extension name"
},
"description": {
"message": "Talis Aspire Reading Lists Bookmarking",
"description": "Extension description"
},
"browserActionTitle": {
"message": "Bookmark to Talis Aspire Reading Lists",
"description": "Message when hovering over extension button"
Expand Down
1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "__MSG_extensionName__",
"author": "Talis Education Limited",
"description":"__MSG_description__",
"version": "__VERSION__",
"icons": {
"16": "images/icon16.png",
Expand Down

0 comments on commit 2108e9e

Please sign in to comment.