From ab319e284ab813c241b94edd5b12a24fd360ba6e Mon Sep 17 00:00:00 2001 From: HoloPengin Date: Mon, 25 Sep 2023 07:38:38 +0900 Subject: [PATCH] Fix error display string template in Ps4.tsx. Add missing Web API import. (#538) Fix missing WebAPI import in PS4 Mode. Fix error display template (js uses backticks for templates) --- www/src/Addons/Ps4.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/src/Addons/Ps4.tsx b/www/src/Addons/Ps4.tsx index 7dafed479..df4ca2440 100644 --- a/www/src/Addons/Ps4.tsx +++ b/www/src/Addons/Ps4.tsx @@ -5,6 +5,7 @@ import * as yup from 'yup'; import JSEncrypt from 'jsencrypt'; import CryptoJS from 'crypto-js'; import isNil from 'lodash/isNil'; +import WebApi from '../Services/WebApi'; import Section from '../Components/Section'; @@ -120,7 +121,7 @@ const verifyAndSavePS4 = async () => { } } catch (e) { document.getElementById('ps4alert').textContent = - 'ERROR: Could not verify required files: ${e}'; + `ERROR: Could not verify required files: ${e}`; } };