mirror of
https://github.com/nasa/openmct.git
synced 2024-12-27 16:38:51 +00:00
caa7bc6fae
* style: apply prettier formatting * fix: re-enable lint ci check
28 lines
665 B
JavaScript
28 lines
665 B
JavaScript
(function () {
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
const PERSISTENCE_KEY = 'persistence-tests';
|
|
const openmct = window.openmct;
|
|
|
|
openmct.objects.addRoot({
|
|
namespace: PERSISTENCE_KEY,
|
|
key: PERSISTENCE_KEY
|
|
});
|
|
|
|
openmct.objects.addProvider(PERSISTENCE_KEY, {
|
|
get(identifier) {
|
|
if (identifier.key !== PERSISTENCE_KEY) {
|
|
return undefined;
|
|
} else {
|
|
return Promise.resolve({
|
|
identifier,
|
|
type: 'folder',
|
|
name: 'Persistence Testing',
|
|
location: 'ROOT',
|
|
composition: []
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
})();
|