|
@ -44,7 +44,7 @@ export function openWebsocket(workout) { |
|
|
async function runBack(query) { |
|
|
async function runBack(query) { |
|
|
return new Promise((resolve, reject) => { |
|
|
return new Promise((resolve, reject) => { |
|
|
/* global chrome */ |
|
|
/* global chrome */ |
|
|
window chrome.runtime.sendMessage(query, result => { |
|
|
|
|
|
|
|
|
window.chrome.runtime.sendMessage(query, result => { |
|
|
if (result.success) { |
|
|
if (result.success) { |
|
|
resolve(result.data) |
|
|
resolve(result.data) |
|
|
} else { |
|
|
} else { |
|
|