Stian Fredrik Aune 4 years ago
parent
commit
fe26f52c8d
  1. 2
      my-bois/src/hooks/net.js

2
my-bois/src/hooks/net.js

@ -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 {

Loading…
Cancel
Save