From a19eec5d6d889cc65e9a5f5b8fe21dd563672d49 Mon Sep 17 00:00:00 2001 From: l Date: Tue, 11 Aug 2020 08:35:10 +0800 Subject: [PATCH] Fix frameless on some version --- customiser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/customiser.py b/customiser.py index ac69400..e474a18 100755 --- a/customiser.py +++ b/customiser.py @@ -140,6 +140,9 @@ try: if '{ frame: false, show: false' not in content: content = content.replace( '{ show: false', '{ frame: false, show: false') + if 'frame: false,' not in content: + content =re.sub(re.compile(r'\{(\s+)\.\.\.rect,(\s+)show: false,'), '{...rect, frame: false,show: false,', content) + print( f' ...adding "open hidden" capabilities to {os.path.join(filepath, "app", "main", "createWindow.js")}') content = re.sub('\\s*\\/\\* === INJECTION START === \\*\\/.*?\\/\\* === INJECTION END === \\*\\/\\s*',