Skip to content

Commit 532bdb1

Browse files
Merge pull request #706 from scala/scastie-frontpage-fix
Fixes #702
2 parents b4b0bce + 9eedfe6 commit 532bdb1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

_includes/scastie.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ <h2><span>Run Scala in your browser</span></h2>
2626
</div>
2727
</div>
2828
</div>
29-
</section>m
29+
</section>

resources/js/functions.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ $('#scaladex-search').autocomplete({
125125
transformResult: function(response) {
126126
return {
127127
suggestions: $.map(response, function(dataItem) {
128-
return {
128+
return {
129129
value: dataItem.organization + " / " + dataItem.repository,
130130
data: dataItem
131131
};
@@ -199,7 +199,7 @@ $(document).ready(function() {
199199
// Scala in the browser
200200
$(document).ready(function() {
201201
if ($("#scastie-textarea").length) {
202-
var editor =
202+
var editor =
203203
CodeMirror.fromTextArea(
204204
document.getElementById("scastie-textarea"),
205205
{
@@ -224,8 +224,7 @@ $(document).ready(function() {
224224

225225
function run(){
226226
console.log("run");
227-
// var scastieBaseUrl = "https://scastie.scala-lang.org";
228-
var scastieBaseUrl = "http://localhost:9000";
227+
var scastieBaseUrl = "https://scastie.scala-lang.org";
229228

230229
$.ajax(
231230
{

0 commit comments

Comments
 (0)