Skip to content

Instantly share code, notes, and snippets.

@EricRabil
Created September 4, 2017 21:56
Show Gist options
  • Save EricRabil/6ea752d9fcd71660ce333fd66fecfeb4 to your computer and use it in GitHub Desktop.
Save EricRabil/6ea752d9fcd71660ce333fd66fecfeb4 to your computer and use it in GitHub Desktop.
iCloud SDK
window.sdk = {
version: "0.0.1 Alpha",
drawIcon(name, icons = {notifications: "", appIcon: "", appIcon2x: ""}) {
var app = {
name,
notificationIcon: icons.notifications,
appIconUrl: icons.appIcon,
appIconUrl2x: icons.appIcon2x
}
COS.appsController._appsInfo[app.name] = COS.AppInfo.create(app);
COS.appsController._appsInfo.notes = COS.appsController._appsInfo.notes2;
CloudOS.displayApps = CloudOS.displayApps.filter(displayApp => displayApp.name !== 'notes');
CloudOS.displayApps.push(app);
CloudOS.appController.initializeAppManagers();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment