Skip to content

Commit e76bc72

Browse files
committed
Use async function so await works.
1 parent b58fd09 commit e76bc72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/includes/_methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Field Name | Purpose | Field Format
168168
const API = await APILoader.create(document.currentScript);
169169

170170
// This informs your script when the displayed list of vehicles has changed, or when a Vehicle Details Page has loaded.
171-
API.subscribe('vehicle-data-updated-v1', ev => {
171+
API.subscribe('vehicle-data-updated-v1', async ev => {
172172

173173
// This obtains a list of VINs for the displayed vehicles.
174174
const vins = await API.utils.getAttributeForVehicles('vin');

0 commit comments

Comments
 (0)