Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working properly on Mac Os (Designed for iPad) #409

Open
liamdeveloper opened this issue Apr 15, 2023 · 0 comments
Open

Not working properly on Mac Os (Designed for iPad) #409

liamdeveloper opened this issue Apr 15, 2023 · 0 comments

Comments

@liamdeveloper
Copy link

liamdeveloper commented Apr 15, 2023

I have used the lib on my project but it does not auto-inject when it run on Mac Os (Designed for iPad). It is working fine on iPad, iPhone & Simulator.
Here is my script string:

let source = """
        (function() {
            var config = {
                ethereum: {
                    address: "\(config.ethereum.address)",
                    chainId: \(config.ethereum.chainId),
                    rpcUrl: "\(config.ethereum.rpcUrl)"
                },
                solana: {
                    cluster: "\(config.solana.cluster)"
                }
            };

            trustwallet.ethereum = new trustwallet.Provider(config);
            trustwallet.solana = new trustwallet.SolanaProvider(config);

            trustwallet.postMessage = (jsonString) => {
                webkit.messageHandlers._tw_.postMessage(jsonString)
            };

            window.ethereum = trustwallet.ethereum;
        })()
        """

Anyone has any idea & experience with this issue, please help me. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@liamdeveloper and others