From b69b28d3322621bba2ac3640733997ff53988e3a Mon Sep 17 00:00:00 2001 From: DUOLabs333 Date: Fri, 8 Dec 2023 12:26:04 -0500 Subject: [PATCH] Add replace back and fix it --- Updater.py | 2 +- www.photopea.com/code/pp/pp.js | 2 +- www.photopea.com/plugins/gallery.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Updater.py b/Updater.py index c6fe08c..03a6202 100755 --- a/Updater.py +++ b/Updater.py @@ -187,6 +187,6 @@ find_and_replace('code/pp/pp.js','"templates/?type="','"templates/index.html?typ find_and_replace('code/pp/pp.js','"https://f000.backblazeb2.com/file/"', '"templates/file/"') #Force enable Remove BG, and any other options that are disabled on self-hosted instances (much more brittle to changes than the other replacements) -#find_and_replace("code/pp/pp.js",'("~yy")','("~yy")||true;') +find_and_replace("code/pp/pp.js",'("~yy")','("~yy")||true') # Having ? in static sites doesn't really work #find_and_replace("templates/index.html",'sch.split("?");','sch.split("#");') diff --git a/www.photopea.com/code/pp/pp.js b/www.photopea.com/code/pp/pp.js index 1b3a941..c1a0cca 100644 --- a/www.photopea.com/code/pp/pp.js +++ b/www.photopea.com/code/pp/pp.js @@ -10827,7 +10827,7 @@ if(b!=u.Lm("_TXZRPB;d7@;")&&b!=dX.Lm("eQLZRRM?8a4=8")){var h=u.Vt[dX.ZF][dX._$], if(G==-1)return 0;try{H=JSON.parse(u.Vt[dX.ajQ](h.slice(G+1)))}catch(ku){return 0}var B=H[u.Lm("bQ[ODL