Can anybody explain me why this code not working?
var Modcore = {};
(function () {
//grPhone 2
Modcore.addPlatform = function () {
var icon = GDT.getRelativePath() + './img/01.png';
GDT.addPlatform(
{
id: 'grPhone 2',
name: 'grPhone 2',
company: 'Grapple',
startAmount: 2.3,
unitsSold: 3.7,
licencePrize: 35000,
published: '19/9/1',
marketKeyPoints:[{date:"23/12/4",amount:3.7}],
platformRetireDate: '24/12/4',
developmentCosts: 12000,
genreWeightings: [0.9, 1, 1, 0.9, 1, 0.7],
audienceWeightings: [0.9, 1, 0.8],
techLevel: 1,
iconUri: icon,
events: [
{
id: 'f0666cad-4344-40e6-bb96-78051e91279',
date: '19/7/1',
getNotification: function (company) {
return new Notification({
header: "Industry News".localize(),
text: "Today. {0}.".format(General.getETADescription('19/7/1', '19/9/1')),
image: icon
});
}
}
]
});
};
})();