@ambers/helios
Version:
Helios IDE for Amber Smalltalk
16 lines (15 loc) • 501 B
JavaScript
define(["require"], function (require) {
return {
pageUrl: function () {
var a = document.createElement("a");
a.href = require.toUrl("..");
return require.toUrl('./index.html') + "#" + encodeURIComponent(a.href);
},
popup: function () {
window.open(this.pageUrl(), undefined, "menubar=no, width=1000, height=600");
},
go: function () {
window.location.href = this.pageUrl();
}
};
});