Skip to content

Commit 7bbca4a

Browse files
2.1.13-1 Developer Beta 7
1 parent 8991fb4 commit 7bbca4a

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

kern/ext.js

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//js/polyfill/polyfill.js
22
var x = new Object()
33
this.x = 0
4+
45
String.prototype.trim || (String.prototype.trim = function() {
56
return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "")
67
}), Date.now = Date.now || function() {
@@ -6391,7 +6392,7 @@ system42("start", function(n) {
63916392
}, {
63926393
name: "Run...",
63936394
icon: "/c/sys/skins/" + n._settings.skin + "/run.png",
6394-
action: e.run
6395+
action: runPrompt()
63956396
}, {
63966397
name: "---"
63976398
}, {
@@ -8701,13 +8702,21 @@ function wSOD(stop1,stop2,stop3,stop4,stop5,stop6,init) {
87018702
var initiation = new Date().getTime();
87028703
while ((new Date().getTime() - initiation) < millisecs);
87038704
}
8705+
function runPrompt() {
8706+
$prompt('<strong>RUN</strong><br>Please type a command', '$alert.info("boi")', function(ok, text) {
8707+
if (ok) {
8708+
$exe("exe")
8709+
}
8710+
});
8711+
8712+
}
87048713
function $ka(functioon) {
87058714
if (xPerm == "admin"()) {
87068715
$confirm('Do you want to allow this kernel-mode code to run? \n\nIf you did not execute it, click Cancel now.',
87078716
function (ok){
87088717
if (ok) {
87098718
x = x + 1
8710-
if (this.x > 20) {
8719+
if (this.x > 5) {
87118720
wSOD("0x01AAAA","0x0013FF","0x000000","0x000000","0x000000","0x000000","?")
87128721
} else {
87138722
sleep_ms(getRandomInt(999))
@@ -8734,6 +8743,10 @@ le._apps.TerminalX = {
87348743
name: "Admin Terminal",
87358744
exe: "js /a/X.js",
87368745
}
8746+
le._apps.testWSoD = {
8747+
name: "Invokes a crash",
8748+
exe: "wSOD('0x0013FF','0x222222','0x000000','0x000000','0x000000','0x000000','le._apps.testWSoD')"
8749+
}
87378750
//js/loader.js
87388751
! function(t) {
87398752
"use strict";
@@ -8803,4 +8816,3 @@ le._apps.TerminalX = {
88038816
$extend(c, t)
88048817
}, t.$loader = e
88058818
}(this);
8806-
// DB

0 commit comments

Comments
 (0)