Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Commit

Permalink
Protection from "undefined".
Browse files Browse the repository at this point in the history
  • Loading branch information
nikDemyankov committed Apr 7, 2016
1 parent 84264f8 commit 2410b70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/lib/iosWKWebViewEngineSupport.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ Mainly, it has only two method: to activate and to deactivate swift support in t

for (config in configurations) {
buildSettings = configurations[config].buildSettings;
var preprocessorDefs = buildSettings['GCC_PREPROCESSOR_DEFINITIONS'];
if (!preprocessorDefs && !isWkWebViewEngineUsed) {
var preprocessorDefs = buildSettings['GCC_PREPROCESSOR_DEFINITIONS'] ? buildSettings['GCC_PREPROCESSOR_DEFINITIONS'] : [];
if (!preprocessorDefs.length && !isWkWebViewEngineUsed) {
continue;
}

Expand Down

0 comments on commit 2410b70

Please sign in to comment.