Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
KLA6 committed Dec 13, 2023
1 parent 0d8af01 commit 1fa65e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Secondly, to show the `console....` things at a corner on a mobile device screen

## Install
```
<script src="https://cdn.jsdelivr.net/gh/KLA6/[email protected].6/k6_console.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/KLA6/[email protected].7/k6_console.min.js"></script>
<script> new k6_console( {
production: false, // If this is true, no console message shows.
global : true , // If this is true, functions will be gloval, not in the class instance.
Expand Down Expand Up @@ -37,7 +37,7 @@ However, it's recommended to hide the installation part at all in the production
The following is an example in PHP.
```
<? if( $DEBUG ) { ?>
<script src="https://cdn.jsdelivr.net/gh/KLA6/[email protected].6/k6_console.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/KLA6/[email protected].7/k6_console.min.js"></script>
<script> new k6_console() </script>
<? } else { ?>
<script> const CD = null, FCD = FCE = FCW = FCG = FCGE = FCT = FCI = FCL = FCLR = () => {}; </script>
Expand Down
4 changes: 2 additions & 2 deletions k6_console.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class k6_console {
this .FM ( 'white', 'black' , result, false )
} // function

function T_name( worker, prefix, name ) { return worker ? `window[ '${prefix}${name}' ]`
: `self.${prefix}${name}` }
function T_name( worker, prefix, name ) { return worker ? `self.${prefix}${name}`
: `window[ '${prefix}${name}' ]` }

if( this.global ) eval(
`${ T_name( this.worker, this.prefix, 'CD' ) } = this.CD ;` +
Expand Down
2 changes: 1 addition & 1 deletion k6_console.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1fa65e5

Please sign in to comment.