SnosMe / electron-overlay-window

Creating overlays is easy like never before
MIT License
201 stars 38 forks source link

OverlayWindow.attachTo() methods doesn't working if the second parameter is certain characters #31

Closed haiwayyy closed 1 year ago

haiwayyy commented 1 year ago

When I use OverlayWindow.attachTo(), if the second parameter is certain characters such as Korean texts, Chinese texts or some special characters(like '【】()'), the border line won't be added to the target window. After I click the target window, the border line will be added.

example:

OverlayWindow.attachTo(
  window,
  '测试',
  { hasTitleBarOnMac: true }
);