File tree Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 86
86
< script >
87
87
utils . global ( false ) ;
88
88
89
+ window . printPage = window . print ;
90
+ window . print = ( ) => {
91
+ console . log ( "warning: print() is no longer alias for text()" ) ;
92
+ } ;
93
+ window . clear = ( ) => {
94
+ console . log ( "warning: clear() is no longer alias for cls()" ) ;
95
+ } ;
96
+ // add global FPS to not break old examples
97
+ window . FPS = "" ;
98
+
89
99
( ( lc ) => {
90
100
window . litecanvas = ( settings = { } ) => {
91
101
const loop =
98
108
return lc ( settings ) ;
99
109
} ;
100
110
} ) ( window . litecanvas ) ;
101
-
102
- window . printPage = window . print ;
103
- window . print = ( ) => {
104
- console . log ( "warning: print() is no longer alias for text()" ) ;
105
- } ;
106
-
107
- window . clear = ( ) => {
108
- console . log ( "warning: clear() is no longer alias for cls()" ) ;
109
- } ;
110
111
</ script >
111
112
112
113
< script id ="code "> </ script >
Original file line number Diff line number Diff line change 1
1
const cacheName = "luizbills.litecanvas-editor-v1" ;
2
- const version = "2.67.1 " ;
2
+ const version = "2.67.2 " ;
3
3
4
4
const precacheResources = [
5
5
"/" ,
Original file line number Diff line number Diff line change @@ -93,12 +93,10 @@ function randomString(length) {
93
93
const result = [ ] ;
94
94
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ;
95
95
const charactersLength = characters . length ;
96
- let counter = 0 ;
97
- while ( counter < length ) {
96
+ for ( let counter = 0 ; counter < length ; counter ++ ) {
98
97
result . push (
99
98
characters . charAt ( Math . floor ( Math . random ( ) * charactersLength ) )
100
99
) ;
101
- counter += 1 ;
102
100
}
103
101
return result . join ( "" ) ;
104
102
}
You can’t perform that action at this time.
0 commit comments