Files
flipper/static/SupportRequestPreload.js
Pritesh Nandgaonkar 84c5067210 Create Support Requests from Flipper
Summary: This diff adds an initial support to prefill the app information and the revision information. This diff also copies the workplace url in the clipboard.

Reviewed By: passy

Differential Revision: D16990925

fbshipit-source-id: 4f354e52de5fea07c2ea36336761d6963c27ef66
2019-09-20 11:39:05 -07:00

19 lines
433 B
JavaScript

/**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
const {ipcRenderer} = require('electron');
global.sendToHost = message => {
ipcRenderer.sendToHost(message);
};
global.setupToReceiveHostMessage = callback => {
ipcRenderer.on('hostMessage', (event, message) => {
callback(message);
});
};