This commit is contained in:
Alex Yatskov 2016-09-15 20:16:23 -07:00
parent 7069f428ee
commit b87611cfdd

View File

@ -68,7 +68,7 @@ document.addEventListener('DOMContentLoaded', () => {
registerAudioLinks(); registerAudioLinks();
}); });
window.addEventListener('message', () => { window.addEventListener('message', e => {
const {action, params} = e.data, method = window['api_' + action]; const {action, params} = e.data, method = window['api_' + action];
if (typeof(method) === 'function') { if (typeof(method) === 'function') {
method(params); method(params);