fill out api.js with stubs later assigned in modules

This commit is contained in:
Stewart Allen 2024-09-16 13:25:39 -04:00
commit e506d75b63
10 changed files with 181 additions and 166 deletions

View file

@ -921,7 +921,7 @@ function fitDeviceToWidgets() {
}
// extend API (api.platform)
const platform = api.platform = {
const platform = Object.assign(api.platform, {
fit: fitDeviceToWidgets,
add: platformAdd,
changed: platformChanged,
@ -950,6 +950,6 @@ const platform = api.platform = {
show_volume: space.platform.showVolume,
top_z() { return topZ },
clear() { api.space.clear(); api.space.save(true) }
};
});
});