fix: show Add Device button in Web environment
This commit is contained in:
@@ -174,7 +174,8 @@ class App extends Component {
|
|||||||
id: 'port-add-btn',
|
id: 'port-add-btn',
|
||||||
displayText: Msg.Lang['nav.btn.addDevice'],
|
displayText: Msg.Lang['nav.btn.addDevice'],
|
||||||
preconditionFn: () => {
|
preconditionFn: () => {
|
||||||
if (goog.isElectron || Env.hasSocketServer) {
|
// 在 Web 环境下始终显示添加设备按钮
|
||||||
|
if (goog.isElectron) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user