From b48aa97dd1127ae432ef8d7a4588cee2e1bec12c Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sun, 26 Sep 2021 16:59:01 +0800 Subject: fix wasm issue. --- doc/docs/.vuepress/styles/index.styl | 1 + src/yue_wasm.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/docs/.vuepress/styles/index.styl b/doc/docs/.vuepress/styles/index.styl index 69327fd..49f1fd0 100755 --- a/doc/docs/.vuepress/styles/index.styl +++ b/doc/docs/.vuepress/styles/index.styl @@ -5,5 +5,6 @@ */ .home .hero img + width: 450px max-width 450px!important diff --git a/src/yue_wasm.cpp b/src/yue_wasm.cpp index fd8b150..3a9f9ad 100644 --- a/src/yue_wasm.cpp +++ b/src/yue_wasm.cpp @@ -11,6 +11,8 @@ static void openlibs(void* state) { lua_State* L = static_cast(state); luaL_openlibs(L); luaopen_yue(L); + luaL_requiref(L, "yue", luaopen_yue, 1); + lua_pop(L, 1); } #define YUE_ARGS nullptr,openlibs -- cgit v1.2.3-55-g6feb