File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ Example usage:
77
77
``` typescript
78
78
import { FileSystem } from " mmrl" ;
79
79
80
- const fs = new FileSystem ();
80
+ const fs = new FileSystem (" net-switch " );
81
81
fs .write (" example.txt" , " Hello, MMRL!" );
82
82
const content = fs .read (" example.txt" );
83
83
console .log (content );
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mmrl" ,
3
- "version" : " 0.2.22 " ,
3
+ "version" : " 0.2.23 " ,
4
4
"description" : " A library to make your life easier when working with MMRL's WebUI" ,
5
5
"source" : " src/index.ts" ,
6
6
"main" : " dist/index.cjs.js" ,
Original file line number Diff line number Diff line change @@ -23,7 +23,14 @@ export const AccessorScope = {
23
23
24
24
parseScope ( scope : ObjectScope ) : object {
25
25
if ( typeof scope === "string" ) {
26
- return window [ `$${ this . sanitizeScope ( scope ) } ` ] ;
26
+ const sanitizedScope = window [ `$${ this . sanitizeScope ( scope ) } ` ] ;
27
+ const unsanitizedScope = window [ `$${ scope } ` ] ;
28
+
29
+ if ( typeof sanitizedScope !== "undefined" ) {
30
+ return sanitizedScope ;
31
+ } else {
32
+ return unsanitizedScope ;
33
+ }
27
34
}
28
35
29
36
return scope ;
You can’t perform that action at this time.
0 commit comments