mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-19 11:09:03 +00:00
Fix frameless on some version
This commit is contained in:
parent
b5043508d9
commit
a19eec5d6d
@ -140,6 +140,9 @@ try:
|
|||||||
if '{ frame: false, show: false' not in content:
|
if '{ frame: false, show: false' not in content:
|
||||||
content = content.replace(
|
content = content.replace(
|
||||||
'{ show: false', '{ frame: false, show: false')
|
'{ 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(
|
print(
|
||||||
f' ...adding "open hidden" capabilities to {os.path.join(filepath, "app", "main", "createWindow.js")}')
|
f' ...adding "open hidden" capabilities to {os.path.join(filepath, "app", "main", "createWindow.js")}')
|
||||||
content = re.sub('\\s*\\/\\* === INJECTION START === \\*\\/.*?\\/\\* === INJECTION END === \\*\\/\\s*',
|
content = re.sub('\\s*\\/\\* === INJECTION START === \\*\\/.*?\\/\\* === INJECTION END === \\*\\/\\s*',
|
||||||
|
Loading…
Reference in New Issue
Block a user