add vue lynx mobile wallet
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import './lib/text-encoder'
|
||||
|
||||
declare const lynxCoreInject: { tt?: Record<string, any> } | undefined
|
||||
|
||||
// The LynxExplorer SDK calls tt.callDestroyLifetimeFun() when destroying a
|
||||
// card. vue-lynx's runtime does not define it, which throws during page
|
||||
// teardown and can break subsequent loads. Provide the expected no-op hook.
|
||||
if (typeof lynxCoreInject !== 'undefined' && lynxCoreInject?.tt) {
|
||||
const tt = lynxCoreInject.tt
|
||||
if (typeof tt.callDestroyLifetimeFun !== 'function') {
|
||||
tt.callDestroyLifetimeFun = () => {}
|
||||
}
|
||||
}
|
||||
|
||||
import { createApp } from 'vue-lynx'
|
||||
|
||||
import App from './App.vue'
|
||||
|
||||
const app = createApp(App)
|
||||
app.mount()
|
||||
Reference in New Issue
Block a user