-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron #6
Comments
Electron拦截HTTP请求,补充额外信息后转发。 |
在项目的渲染进程中,一般使用 |
export function showOpenDialog (windowOrOptions: BrowserWindow | OpenDialogOptions, maybeOptions?: OpenDialogOptions): OpenDialogReturnValue {
const window = (windowOrOptions && !(windowOrOptions instanceof BrowserWindow) ? null : windowOrOptions);
const options = (windowOrOptions && !(windowOrOptions instanceof BrowserWindow) ? windowOrOptions : maybeOptions);
return openDialog(false, window, options);
} 最新的源码采用 |
import { clipboard } from 'electron';
import plist from 'plist';
function getClipboardFiles(): Array<string> {
return clipboard.has('NSFilenamesPboardType')
? plist.parse(clipboard.read('NSFilenamesPboardType'))
: [];
} |
Electron相关问题🚀
The text was updated successfully, but these errors were encountered: