mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-26 20:32:06 +00:00
change 'OrcaSlicer' to 'Snapmaker Orca' (#88)
* change 'OrcaSlicer' to 'Snapmaker Orca' * Fix Orca Multi-Language * Update 1227
This commit is contained in:
@@ -55,27 +55,10 @@
|
||||
</script>
|
||||
<script>
|
||||
|
||||
function open_browser() {
|
||||
function open_orca_webview() {
|
||||
const message = JSON.stringify({
|
||||
seqid: 1222222,
|
||||
cmd: "homepage_test_browser",
|
||||
params: {
|
||||
url: "http://localhost:7357/?locale=zh-cn-CN&dark_model=1&path=/",
|
||||
},
|
||||
});
|
||||
// 调用 window.postMessage 传递消息给 flutter
|
||||
window.wx && window.wx.postMessage(message); // 调用 window.postMessage 传递消息给 原生系统
|
||||
///模拟收到响应结果5000
|
||||
if(!window.wx) {
|
||||
// 我不能发现 window.wx
|
||||
console.log('i dont find window.wx, so i simulate a return by postMessage, message: ', message)
|
||||
}
|
||||
}
|
||||
|
||||
function open_snapmaker_browser() {
|
||||
const message = JSON.stringify({
|
||||
seqid: 1222222,
|
||||
cmd: "sw_OpenBrowser",
|
||||
cmd: "sw_OpenOrcaWebview",
|
||||
params: {
|
||||
url: "http://localhost:7357/?locale=zh-cn-CN&dark_model=1&path=/",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user