@electerm/electerm-react 1.37.18 → 1.37.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  export default (basePath, nameOrDot) => {
9
- const sep = basePath.includes('\\') || basePath.includes(':\\')
9
+ const sep = basePath.includes('\\') || basePath.includes(':\\') || /^[a-z]+:$/i.test(basePath)
10
10
  ? '\\'
11
11
  : '/'
12
12
  if (nameOrDot === '..') {
@@ -6,7 +6,7 @@ export default function AppDrag (props) {
6
6
  if (
7
7
  target instanceof window.SVGElement ||
8
8
  target.classList.contains('tab-title') ||
9
- target.classList.contains('tab-title')
9
+ target.classList.contains('ant-tooltip-inner')
10
10
  ) {
11
11
  window.pre.runSync('windowMove', false)
12
12
  return false
@@ -17,7 +17,12 @@ export default function TermInteractive () {
17
17
  const [opts, setter] = useState(null)
18
18
  const [form] = Form.useForm()
19
19
  function onMsg (e) {
20
- if (e.data.includes('session-interactive')) {
20
+ if (
21
+ e &&
22
+ e.data &&
23
+ typeof e.data === 'string' &&
24
+ e.data.includes('session-interactive')
25
+ ) {
21
26
  setter(JSON.parse(e.data))
22
27
  }
23
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/electerm-react",
3
- "version": "1.37.18",
3
+ "version": "1.37.28",
4
4
  "description": "react components src for electerm",
5
5
  "main": "./client/components/main/main.jsx",
6
6
  "license": "MIT",