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

add debug hack for emulator #3

Closed
clach04 opened this issue Oct 11, 2018 · 2 comments
Closed

add debug hack for emulator #3

clach04 opened this issue Oct 11, 2018 · 2 comments

Comments

@clach04
Copy link
Owner

clach04 commented Oct 11, 2018

don't use Clay when in an emulator, open static web page, in an attempt to workaround
pebble/clay#162

@clach04
Copy link
Owner Author

clach04 commented Oct 11, 2018

From https://github.com/clach04/clay/blob/4641292d3d92b5a4f91a4a8544eebe7577b3d051/index.js#L154

var emulator = !Pebble || Pebble.platform === 'pypkjs';
....
if (emulator) {
....

@clach04
Copy link
Owner Author

clach04 commented Nov 9, 2018

Done in commit 39c1e18 - however, turns out there was another way. Custom actions appear to get around browser behavior and Clay then works in emulator. Code left in so that emulator can be detected should that be needed.

@clach04 clach04 closed this as completed Nov 9, 2018
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

1 participant