Skip to content

Commit 05da1e7

Browse files
committed
Patches for fiddle + ace editor interactions.
1 parent df7dce0 commit 05da1e7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dragonruby-html5-loader.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function syncDataFiles(dbname, baseurl)
1616
// once we're shipping, and it defeats Cloudflare cacheing, causing it
1717
// to abuse Amazon S3, etc.)
1818
var urlrandomizerarg = '';
19-
if (false) {
19+
if (true) {
2020
urlrandomizerarg = "?nocache=" + (Date.now() / 1000 | 0);
2121
}
2222

@@ -398,9 +398,9 @@ document.getElementById('borderdiv').style.border = '0px';
398398
//document.getElementById('progressdiv').style.display = 'none';
399399
document.getElementById('output').style.display = 'none';
400400

401-
// if (!window.parent.window.gtk) {
402-
// window.parent.window.gtk = {};
403-
// }
401+
if (!window.parent.window.gtk) {
402+
window.parent.window.gtk = {};
403+
}
404404

405405
window.parent.window.gtk.saveMain = function(text) {
406406
FS.writeFile('app/main.rb', text);
@@ -545,9 +545,9 @@ var Module = {
545545
div.removeEventListener('click', Module.clickToPlayListener);
546546
document.body.removeChild(div);
547547
}
548-
// if (window.parent.window.gtk.starting) {
549-
// window.parent.window.gtk.starting();
550-
// }
548+
if (window.parent.window.gtk.starting) {
549+
window.parent.window.gtk.starting();
550+
}
551551

552552
startGame(); // go go go!
553553
},

0 commit comments

Comments
 (0)