Explorar el Código

feat: support GM_xmlhttpRequest#res#context

close violentmonkey/violentmonkey#90
Gerald hace 8 años
padre
commit
f1903a32fa
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/injected.js

+ 1 - 0
src/injected.js

@@ -282,6 +282,7 @@
           if (!req.data) req.data = [parseData(res, req.details)];
           res.data.response = req.data[0];
         }
+        res.data.context = req.details.context;
         cb(res.data);
       }
       if (res.type === 'loadend') delete comm.requests[req.id];