
/* globals GLOBAL_OBJECT */

import { callNative } from './util';

export default {
    postMessageToWebView(message) {
        const pageId = global.__biliCacheData.getCurrentPageId();
        callNative('postMessageToWebView', {
            pageId,
            data: message
        });
    }
};
