blob: 50238f5d61d7463dc04f562764c6fe99c9b5abcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="https://unpkg.com/@shopify/polaris@10.2.0/build/esm/styles.css"/>
</head>
<body>
<script src="https://unpkg.com/@shopify/app-bridge@3"></script>
<script src="https://unpkg.com/@shopify/app-bridge-utils@3"></script>
<script>
async function getToken() {
Module.cwrap('getproducts', '',
['string', 'string'])(await
window['app-bridge-utils']
.getSessionToken(
window['app-bridge']
.createApp({
apiKey: '%s',
host: '%s'
})), '%s');
}
</script>
<script type="text/javascript" src="%s/main.js"></script>
</body>
</html>
|