Skip to content

Commit 62e9b19

Browse files
committed
Added Perl.noMountIdbfs and updated changelog
1 parent 7b15fc5 commit 62e9b19

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

Changes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ WebPerl Changelog
33
=================
44

55

6-
not yet released: v0.05-beta
6+
2018-09-02: v0.05-beta
77
----------------------------
88
- Added Perl.addStateChangeListener and deprecated Perl.stateChanged
99
- Added WebPerl::js_new()
10-
- ...
10+
- Added regex_tester.html
11+
- Added Perl.noMountIdbfs
12+
- A few other minor fixes and updates
1113

1214

1315
2018-08-14: v0.03-beta

web/regex_tester.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
</style>
9292

9393
<script src="webperl.js"></script>
94-
<!--script src="https://webperlcdn.zero-g.net/v0.03-beta/webperl.js"
95-
integrity="sha256-PWdMdWEx3axFU/29XiOPUwenmlsBM+5f+kc2omoKxPs=" crossorigin="anonymous"></script-->
94+
<!--script src="https://webperlcdn.zero-g.net/v0.05-beta/webperl.js"
95+
integrity="sha256-0RqUAQu0lcyxE1cPEuyrchvz0YkDITr41FYfTL4Prtk" crossorigin="anonymous"></script-->
9696
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
9797
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
9898

web/webperl.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ var Module;
2727
var Perl = {
2828
trace: false, // user may enable this
2929
endAfterMain: false, // user may enable this (before Perl.init)
30+
noMountIdbfs: false, // user may enable this (before Perl.start)
31+
WebPerlVersion: 'v0.05-beta',
3032
Util: {},
3133
// internal variables:
3234
initStepsLeft: 2, // Must match number of Perl.initStepFinished() calls!
@@ -51,7 +53,10 @@ var Perl = {
5153

5254
/* TODO: Embedded script should be able to influence the running of Perl,
5355
* the cleanest would probably be to set properties on the Perl object,
54-
* such as Perl.autorun = false or Perl.argv = [...]. */
56+
* such as Perl.autorun = false or Perl.argv = [...]. It should be possible
57+
* for the user to do this for embedded scripts also! Will probably need
58+
* to change the initialization of Perl so that the user can set its properties
59+
* *before* loading webperl.js. */
5560

5661
window.addEventListener("load", function () {
5762
// Note: to get the content of script tags with jQuery: $('script[type="text/perl"]').html()
@@ -223,6 +228,11 @@ Perl.init = function (readyCallback) {
223228
},
224229
preRun: [
225230
function () {
231+
if (Perl.noMountIdbfs) {
232+
console.debug("Perl: doing preRun, skipping IndexDB filesystem");
233+
Perl.initStepFinished();
234+
return;
235+
}
226236
console.debug("Perl: doing preRun, fetching IndexDB filesystem...");
227237
try { FS.mkdir('/mnt'); } catch(e) {}
228238
try { FS.mkdir('/mnt/idb'); } catch(e) {}

0 commit comments

Comments
 (0)