mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
support ssf name-space (#78)
This commit is contained in:
parent
effa2def9c
commit
4bcf134ca8
@ -50,7 +50,7 @@ function createAPI() {
|
|||||||
//
|
//
|
||||||
// API exposed to renderer process.
|
// API exposed to renderer process.
|
||||||
//
|
//
|
||||||
window.SYM_API = {
|
window.ssf = {
|
||||||
// api version
|
// api version
|
||||||
version: '1.0.0',
|
version: '1.0.0',
|
||||||
|
|
||||||
@ -132,6 +132,9 @@ function createAPI() {
|
|||||||
getMediaSources: getMediaSources
|
getMediaSources: getMediaSources
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// add support for both ssf and SYM_API name-space.
|
||||||
|
window.SYM_API = window.ssf;
|
||||||
|
Object.freeze(window.ssf);
|
||||||
Object.freeze(window.SYM_API);
|
Object.freeze(window.SYM_API);
|
||||||
|
|
||||||
// listen for log message from main process
|
// listen for log message from main process
|
||||||
|
Loading…
Reference in New Issue
Block a user