allow testing wasm in non-debug mode
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com> Change-Id: I583a8104f590e26a76837bef00814684e2015c7a
This commit is contained in:
parent
bb2df24d1b
commit
48002c5d40
3 changed files with 1 additions and 5 deletions
|
@ -310,7 +310,7 @@
|
|||
|
||||
<wasm desc="WASM-specific settings">
|
||||
<enable desc="Enable WASM support" type="bool" default="false"></enable>
|
||||
<force desc="When enabled, all requests are redirected to WASM. Only valid in debug builds." type="bool" default="false"></force>
|
||||
<force desc="When enabled, all requests are redirected to WASM." type="bool" default="false"></force>
|
||||
</wasm>
|
||||
|
||||
</config>
|
||||
|
|
|
@ -2393,7 +2393,6 @@ void COOLWSD::innerInitialize(Application& self)
|
|||
? COOLWSD::WASMActivationState::Enabled
|
||||
: COOLWSD::WASMActivationState::Disabled;
|
||||
|
||||
#if ENABLE_DEBUG
|
||||
if (getConfigValue<bool>(conf, "wasm.force", false))
|
||||
{
|
||||
if (COOLWSD::WASMState != COOLWSD::WASMActivationState::Enabled)
|
||||
|
@ -2407,7 +2406,6 @@ void COOLWSD::innerInitialize(Application& self)
|
|||
LOG_INF("WASM is force-enabled. All documents will be loaded through WASM");
|
||||
COOLWSD::WASMState = COOLWSD::WASMActivationState::Forced;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Get anonymization settings.
|
||||
#if COOLWSD_ANONYMIZE_USER_DATA
|
||||
|
|
|
@ -931,7 +931,6 @@ std::string FileServerRequestHandler::getRequestPathname(const HTTPRequest& requ
|
|||
Poco::replaceInPlace(path, std::string("/browser" + gitHash), std::string("/browser/dist/"));
|
||||
}
|
||||
|
||||
#if ENABLE_DEBUG
|
||||
if (COOLWSD::WASMState == COOLWSD::WASMActivationState::Forced)
|
||||
{
|
||||
if (path.find("/browser/dist/wasm/") == std::string::npos)
|
||||
|
@ -940,7 +939,6 @@ std::string FileServerRequestHandler::getRequestPathname(const HTTPRequest& requ
|
|||
std::string("/browser/dist/wasm/"));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return path;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue