Skip to content

Commit

Permalink
update for manifet overwrite that was killing web
Browse files Browse the repository at this point in the history
  • Loading branch information
boyofgreen committed Mar 22, 2016
1 parent 22ce0d1 commit 08d504a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function convertFromBase(manifestInfo, callback) {
}

//pull out the values that we need, then set them to our locals
var manifest = originalManifest;
var manifest = {};
manifest.scopeArray = [];
//add the scope in
var tempArray = [];
Expand Down Expand Up @@ -85,10 +85,10 @@ function convertFromBase(manifestInfo, callback) {
// console.log(manifest.icons[0])
manifest.rawManifest = manifest.rawManifest.replace(/{GUID}/g, guid)
.replace(/{providerName}/g, "Microsoft")
.replace(/{sourceLocation}/g, manifest.start_url)
.replace(/{defaultLocale}/g, manifest.lang || 'EN-US')
.replace(/{displayName}/g, manifest.short_name || manifest.name)
.replace(/{description}/g, manifest.name || 'no description provided')
.replace(/{sourceLocation}/g, originalManifest.start_url)
.replace(/{defaultLocale}/g, originalManifest.lang || 'EN-US')
.replace(/{displayName}/g, originalManifest.short_name || originalManifest.name)
.replace(/{description}/g, originalManifest.name || 'no description provided')
.replace(/{iconURL}/g,manifest.icons&&manifest.icons[32]?'<IconUrl DefaultValue="'+manifest.icons[32]+'" />': '<IconUrl DefaultValue="defaultIcon32x32.png" />') //only one image can be used


Expand Down

0 comments on commit 08d504a

Please sign in to comment.