From 9b2dc23197d81f2f2965ab86e88bb4e08f6be69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfred=20W=C3=A4rns=C3=A4ter?= Date: Thu, 1 Jul 2021 16:30:30 +0200 Subject: [PATCH] finished porting blendtask.j --- AppKit/Themes/CommonJS/blendtask.j | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/AppKit/Themes/CommonJS/blendtask.j b/AppKit/Themes/CommonJS/blendtask.j index 90c7cf4e2..438dcdb00 100644 --- a/AppKit/Themes/CommonJS/blendtask.j +++ b/AppKit/Themes/CommonJS/blendtask.j @@ -55,9 +55,14 @@ BlendTask.prototype.packageType = function() BlendTask.prototype.infoPlist = function() { + // these should be equivalent + // resources = UTIL.unique(resources); + // resources = [... new Set(resources)]; + var infoPlist = BundleTask.prototype.infoPlist.apply(this, arguments); - infoPlist.setValueForKey("CPKeyedThemes", require("narwhal/util").unique(this._keyedThemes)); + infoPlist.setValueForKey("CPKeyedThemes", [... new Set(this._keyedThemes)]); + //infoPlist.setValueForKey("CPKeyedThemes", require("narwhal/util").unique(this._keyedThemes)); return infoPlist; };