Skip to content

Commit 1000a1a

Browse files
committed
bugfix undefined options.registerFetch
1 parent 12afddb commit 1000a1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/request.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ export default function(options, iframely_options, callback) {
9393
}
9494

9595
if (error) {
96-
options.registerFetchError({
96+
iframely_options.registerFetchError({
9797
source: 'api',
9898
url: options.uri,
9999
error: error
100100
});
101101
} else if (result && result.status !== 200) {
102-
options.registerFetchError({
102+
iframely_options.registerFetchError({
103103
source: 'api',
104104
url: options.uri,
105105
status_code: result.status
@@ -157,7 +157,7 @@ export default function(options, iframely_options, callback) {
157157
options.headers['User-Agent'] = CONFIG.USER_AGENT;
158158
}
159159

160-
options.registerFetch({
160+
iframely_options.registerFetch({
161161
source: 'api',
162162
url: options.uri
163163
});
@@ -200,7 +200,7 @@ export default function(options, iframely_options, callback) {
200200
}
201201
}
202202

203-
options.registerFetch({
203+
iframely_options.registerFetch({
204204
source: 'cache',
205205
url: options.uri
206206
});

0 commit comments

Comments
 (0)