check not empty root urls before setting field (#53135)

This commit is contained in:
Will Browne
2022-08-03 15:25:59 +02:00
committed by GitHub
parent 09c4dbdb9f
commit 5523c00b01

View File

@@ -22,7 +22,7 @@ const pluginSignRunner: TaskRunner<PluginSignOptions> = async ({ signatureType,
if (signatureType) {
manifest.signatureType = signatureType;
}
if (rootUrls) {
if (rootUrls && rootUrls.length > 0) {
rootUrls.forEach(assertRootUrlIsValid);
manifest.rootUrls = rootUrls;
}