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
This commit is contained in:
committed by
Facebook Github Bot
parent
b041da6d61
commit
84c5067210
18
static/SupportRequestPreload.js
Normal file
18
static/SupportRequestPreload.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* 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);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user