Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 5dc7ad8

Browse files
fix: fix cannot read .toLowerCase() of undefined #1304
1 parent d6cbb51 commit 5dc7ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

publish/scripts/installer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ module.exports = function($logger, hookArgs) {
949949
for which environment {development|prod} the project was prepared. If needed, we delete the NS .nsprepareinfo
950950
file so we force a new prepare
951951
*/
952-
var platform = (hookArgs.checkForChangesOpts || hookArgs.platformData).platform.toLowerCase();
952+
var platform = (hookArgs.checkForChangesOpts || hookArgs.prepareData).platform.toLowerCase();
953953
var projectData = (hookArgs.checkForChangesOpts && hookArgs.checkForChangesOpts.projectData) || hookArgs.projectData;
954954
var platformsDir = projectData.platformsDir;
955955
var appResourcesDirectoryPath = projectData.appResourcesDirectoryPath;

0 commit comments

Comments
 (0)