Fixed: Allow 'await' for loading a bundle with the method 'loadWithDelegate:'

This commit is contained in:
Martin Carlberg
2021-09-20 09:19:05 +02:00
parent 511e18b44f
commit 119e11cfe2
+4 -1
View File
@@ -207,7 +207,10 @@ var CPBundlesForURLStrings = { };
CPLog.error("Could not find bundle: " + self);
});
_bundle.load(YES);
// Return the answer so it is possible to do 'await' on this 'loadWithDelegate:' method as the
// load function will return a Promise. It is still possible to not do 'await' on this method
// and that gives us the old behaviour.
return _bundle.load(YES);
}
- (CPArray)staticResourceURLs