Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Handle fetch response with a noop until we add CORS headers to Ironbr…
Browse files Browse the repository at this point in the history
…oker and bump version
  • Loading branch information
gj committed Aug 19, 2017
1 parent f5cf0a8 commit 1c2c4a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions learnBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ window.onload = (function () {
body: JSON.stringify(payload),
mode: 'no-cors' // TODO: Add CORS headers to Ironbroker
})
.then(response => {
if (response.ok) {
// Parse response and print relevant data to student, such as a confirmed submission message
}
})
.then(response => { /* noop */ })
.catch(error => console.warn('Unable to contact Learn servers. Please check your Internet connection and try again.'));
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "learn-browser",
"version": "0.1.7",
"version": "0.1.8",
"description": "Test Flatiron School's JavaScript curriculum with a browser-based Mocha runner.",
"main": "learnBrowser.js",
"scripts": {
Expand Down

0 comments on commit 1c2c4a4

Please sign in to comment.