Skip to content

Commit 72cf1b2

Browse files
committed
Simplify examples url
1 parent 042ee50 commit 72cf1b2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

example/src/main/scala/example/Example.scala

+2-5
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ object XMLHttpRequest{
123123
@JSExport
124124
def main(pre: html.Pre) = {
125125
val xhr = new dom.XMLHttpRequest()
126-
xhr.open("GET",
127-
"https://www.boredapi.com/api/activity?type=recreational"
128-
)
126+
xhr.open("GET", "https://www.boredapi.com/api/activity")
129127
xhr.onload = { (e: dom.Event) =>
130128
if (xhr.status == 200) {
131129
pre.textContent = xhr.responseText
@@ -164,8 +162,7 @@ object AjaxExtension {
164162
.ExecutionContext
165163
.Implicits
166164
.global
167-
val url =
168-
"https://www.boredapi.com/api/activity?type=recreational"
165+
val url = "https://www.boredapi.com/api/activity"
169166
Ajax.get(url).foreach { case xhr =>
170167
pre.textContent = xhr.responseText
171168
}

0 commit comments

Comments
 (0)