import Lokka from 'lokka';
import Transport from 'lokka-transport-http';

const protocol = window.location.protocol;
const host = window.location.host;
const path = `${protocol}//${host}/graphql`;
const transport = new Transport(path);

const graphql = new Lokka({ transport });

export default graphql;

@@ -67,16 +67,48 @@
 http';%0A%0A
+const originCreator = () =%3E %7B%0A  
 const pr
@@ -142,16 +142,18 @@
 otocol;%0A
+  
 const ho
@@ -154,16 +154,20 @@
 nst host
+name
  = windo
@@ -185,43 +185,211 @@
 host
-;%0Aconst path = %60$%7Bprotocol%7D//$%7Bhost
+name;%0A  let port = window.location.port;%0A  port = port ? %60:$%7Bport%7D%60 : '';%0A  return %60$%7Bprotocol%7D//$%7Bhostname%7D$%7Bport%7D%60;%0A%7D;%0A%0Aconst origin = window.location.origin %7C%7C originCreator();%0A%0Aconst path = %60$%7Borigin
 %7D/gr
@@ -396,16 +396,17 @@
 aphql%60;%0A
+%0A
 const tr

fix location origin for graphql for i.e.