feat: 支持配置 safeDomain 用来支持一个网站多域名通信问题

This commit is contained in:
jeasonnow
2023-06-25 15:22:46 +08:00
parent 80ff9fae0f
commit 3c97825b54
4 changed files with 30 additions and 19 deletions

3
bin/types.ts vendored
View File

@@ -50,6 +50,9 @@ export interface PakeCliOptions {
/** 需要注入页面的外部脚本 */
inject: string[];
/* the domain that can use ipc or tauri javascript sdk */
safeDomain: string[];
}
export interface PakeAppOptions extends PakeCliOptions {