fix: 🐛 fix en translation + fix threads
All checks were successful
retro / xml (push) Successful in 11s
retro / php (push) Successful in 54s
retro / nodejs (push) Successful in 52s
retro / release (push) Has been skipped

This commit is contained in:
Michel Roux 2025-01-04 22:34:13 +01:00
parent 75f6656c38
commit d0e8f9efe0
2 changed files with 4 additions and 6 deletions

View File

@ -36,6 +36,10 @@ class PageController extends Controller
$csp->allowEvalScript(true);
$response = new TemplateResponse(Application::APP_ID, 'index');
$response->setHeaders([
'Cross-Origin-Opener-Policy' => 'same-origin',
'Cross-Origin-Embedder-Policy' => 'require-corp',
]);
$response->setContentSecurityPolicy($csp);
return $response;

View File

@ -13,7 +13,6 @@ import ar from '@emulatorjs/emulatorjs/data/localization/ar-AR.json'
import ben from '@emulatorjs/emulatorjs/data/localization/ben-BEN.json'
import de from '@emulatorjs/emulatorjs/data/localization/de-GER.json'
import el from '@emulatorjs/emulatorjs/data/localization/el-GR.json'
import en from '@emulatorjs/emulatorjs/data/localization/en.json'
import es from '@emulatorjs/emulatorjs/data/localization/es-ES.json'
import fa from '@emulatorjs/emulatorjs/data/localization/fa-AF.json'
import { getRequestToken } from '@nextcloud/auth'
@ -98,7 +97,6 @@ type Config = {
| 'ben'
| 'de'
| 'el'
| 'en'
| 'es'
| 'fa'
| 'hi'
@ -185,9 +183,6 @@ switch (document.documentElement.lang) {
config.language = 'zh'
config.langJson = zh
break
default:
config.language = 'en'
config.langJson = en
}
interface EmulatorJS {
@ -316,7 +311,6 @@ if (system) {
}
config.dataPath = 'https://cdn.emulatorjs.org/stable/data/'
config.startOnLoad = true
config.threads = !!window.SharedArrayBuffer
// eslint-disable-next-line no-new