Browse Source

run Epesi.request response in global context

experimental
Paweł Jedwabny 4 years ago
parent
commit
c396ad3865
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/epesi.js

+ 2
- 1
src/epesi.js View File

@@ -63,7 +63,8 @@ class Epesi {
try {
let response = await axios.post(this.process_file, qs.stringify({history, url}));
jQuery(document).trigger('e:loading');
await this.loader.execute_js(response.data);
let func = new Function(response.data);
window::func();
} catch (err) {
this.text(err.message, 'error_box', 'p')
}


Loading…
Cancel
Save