Remove a console.log in julia, add callback function
This commit is contained in:
parent
797fd0eea0
commit
1d006283f3
@ -1,7 +1,12 @@
|
||||
// Testing to see if I can make API calls on a site that has CSP headers. However,
|
||||
// this certain site does not have those headers on their error page, so by creating
|
||||
// an iframe on the document root with this source we can make an api call to another
|
||||
// an iframe on the document root with the error page we can make an api call to another
|
||||
// service, maybe?
|
||||
fetch('https://jsonplaceholder.typicode.com/todos/1')
|
||||
|
||||
// Old-school callback hell being forced upon me rn
|
||||
function fetchTodos(callback) {
|
||||
fetch('https://jsonplaceholder.typicode.com/todos')
|
||||
.then(response => response.json())
|
||||
.then(json => console.log(json))
|
||||
.then(callback)
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,6 @@ const startAnim = (sliderId, complexComponentName='ci') => {
|
||||
};
|
||||
const start = setInterval(() => {
|
||||
if (state[complexComponentName] >= C_THRESHOLD) {
|
||||
console.log("OVER", C_THRESHOLD);
|
||||
restart(start);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user