Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
hotfix for weditor
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed May 7, 2024
1 parent 47f3890 commit 3f462a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion weditor/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@
<button :disabled="loading || connecting" class="btn btn-default" v-on:click="dumpHierarchyWithScreen()">
<i class="fa fa-refresh" :class='{"fa-spin": dumping}'></i> Dump Hierarchy
</button>
<template v-if="platform == 'Android'">
<template v-if="platform == 'Beta'">
<el-switch v-model="liveScreen" active-text="实时" inactive-text="静态">
</el-switch>
</template>
<div class="form-group">
<span style="color: red">因原有的weditor修改难度过大,所以我重新写了一个新工具<a target="_blank" href="https://uiauto.dev">https://uiauto.dev</a>,欢迎试用</span>
</div>
</form>
<ul class="nav navbar-nav navbar-right">
<!-- <li><a href="#">Link</a></li> -->
Expand Down
4 changes: 2 additions & 2 deletions weditor/web/handlers/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def post(self):
'success': True,
}
if platform == "android":
ws_addr = get_device(id).device.address.replace("http://", "ws://") # yapf: disable
ret['screenWebSocketUrl'] = ws_addr + "/minicap"
# ws_addr = get_device(id).device.address.replace("http://", "ws://") # yapf: disable
ret['screenWebSocketUrl'] = None #ws_addr + "/minicap"
self.write(ret)


Expand Down

0 comments on commit 3f462a3

Please sign in to comment.