This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let msurls = ["http://example.org", "http://example.org"] | |
| let request = require ("request-promise-native") | |
| async function doRequests () { | |
| return await (Promise.all ( | |
| msurls.map (async msurl => await request (msurl))) | |
| ) | |
| } | |
| doRequests (). then (msresult => console.log (msresult)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){ | |
| $('#shipping-data').on('enable.vtex', function(){ | |
| console.log('Shipping Data just opened.'); | |
| }); | |
| $(window).on('orderFormUpdated.vtex', function(ev, orderForm) { | |
| console.log('Order Form updated.'); | |
| }); | |
OlderNewer