Skip to content

Commit c421d51

Browse files
authored
override config on web (#17)
1 parent 4594aab commit c421d51

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include(ECMUninstallTarget)
1111
option(ENABLE_TEST "Build Test" On)
1212
option(ENABLE_COVERAGE "Build the project with gcov support (Need ENABLE_TEST=On)" Off)
1313

14-
find_package(Fcitx5Core 5.1.2 REQUIRED)
14+
find_package(Fcitx5Core 5.1.12 REQUIRED)
1515
find_package(Fcitx5Module REQUIRED COMPONENTS Clipboard TestFrontend)
1616
find_package(Gettext REQUIRED)
1717
find_package(PkgConfig REQUIRED)

src/engine.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ AnthyEngine::AnthyEngine(fcitx::Instance *instance)
276276
FCITX_ANTHY_INFO() << "Anthy: " << msg;
277277
},
278278
0);
279-
if constexpr (fcitx::isAndroid() || fcitx::isApple()) {
279+
if constexpr (fcitx::isAndroid() || fcitx::isApple() ||
280+
fcitx::isEmscripten()) {
280281
const auto &sp = fcitx::StandardPath::global();
281282
std::string anthy_conf = sp.locate(fcitx::StandardPath::Type::Data,
282283
"anthy/anthy-unicode.conf");

0 commit comments

Comments
 (0)