Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit 5ed1261

Browse files
committed
fix(): pass href for samsung platform
1 parent cbed14e commit 5ed1261

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/projectBuilder.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function copyAssets(assets, generatedAppDir, callback) {
9393
return Q.resolve().nodeify(callback);
9494
}
9595

96-
function createApps (w3cManifestInfo, rootDir, platforms, options, callback) {
96+
function createApps (w3cManifestInfo, rootDir, platforms, options, href, callback) {
9797
// validate arguments
9898
if (arguments.length < 3) {
9999
return Q.reject(new Error('One or more required arguments are missing.')).nodeify(callback);
@@ -106,6 +106,10 @@ function createApps (w3cManifestInfo, rootDir, platforms, options, callback) {
106106
}
107107
}
108108

109+
if (!href) {
110+
href = '/';
111+
}
112+
109113
// determine the path where the app will be created
110114
options.appName = utils.sanitizeName(w3cManifestInfo.content.short_name);
111115
var generatedAppDir = path.join(rootDir, options.appName);
@@ -134,7 +138,7 @@ function createApps (w3cManifestInfo, rootDir, platforms, options, callback) {
134138
return Q.resolve(generatedAppDir).then(function(generatedAppOutputDir) {
135139
return fileTools.mkdirp(generatedAppOutputDir).then(function() {
136140
var w3cManifestInfoCopy = JSON.parse(JSON.stringify(w3cManifestInfo));
137-
return Q.ninvoke(platform, 'create', w3cManifestInfoCopy, generatedAppOutputDir, options).then(function () {
141+
return Q.ninvoke(platform, 'create', w3cManifestInfoCopy, generatedAppOutputDir, options, href).then(function () {
138142
log.info('The ' + platform.name + ' app was created successfully!');
139143
})
140144
.catch(function (err) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)