Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Apr 20, 2024
1 parent e3c6d22 commit eac6903
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
3 changes: 2 additions & 1 deletion filestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ export class Filestore {
j = 0;

this.XPC = this.PC;
if (this.PC >= 0xf800) op = 0x60; //ROM, read rts
if (this.PC >= 0xf800)
op = 0x60; //ROM, read rts
else op = this.GBYTE();

i = op & 0x1f; //row
Expand Down
24 changes: 14 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@
<li><a href="#" id="fs" class="dropdown-item">Fullscreen</a></li>
<li><a href="#help" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#help">Help</a></li>
<li>
<a href="#pp-tos" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#pp-tos">Privacy Policy &amp; ToS</a>
<a href="#pp-tos" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#pp-tos"
>Privacy Policy &amp; ToS</a
>
</li>
<li><a href="mailto:[email protected]" class="dropdown-item">Contact the Author</a></li>
<li>
Expand Down Expand Up @@ -389,17 +391,19 @@ <h5 class="modal-title" id="infoModalLabel">Privacy Policy &amp; Terms of Servic
</div>
<div class="modal-body">
<div>
jsbeeb uses cookies for simple analytics. Those analytics are used to track usage and improve
user experience. If you'd like to run a local copy of jsbeeb instead, the source is on
<a href="https://github.com/mattgodbolt/jsbeeb">GitHub</a>. There's no server logs or information
kept on the jsbeeb servers, we just serve up this HTML from an AWS bucket.
jsbeeb uses cookies for simple analytics. Those analytics are used to track usage and improve user
experience. If you'd like to run a local copy of jsbeeb instead, the source is on
<a href="https://github.com/mattgodbolt/jsbeeb">GitHub</a>. There's no server logs or information kept on
the jsbeeb servers, we just serve up this HTML from an AWS bucket.
</div>
<div>No personal information is kept. If you choose to access Google Drive for disc storage,
only the minimal information needed to log in and access your own discs is kept in cookies.
That information is never shared with the jsbeeb developers.
<div>
No personal information is kept. If you choose to access Google Drive for disc storage, only the minimal
information needed to log in and access your own discs is kept in cookies. That information is never
shared with the jsbeeb developers.
</div>
<div>Use of jsbeeb is at your own risk. Reasonable efforts are used to keep the site up to
date and working. You may use jsbeeb for whatever lawful purpose you wish.
<div>
Use of jsbeeb is at your own risk. Reasonable efforts are used to keep the site up to date and working.
You may use jsbeeb for whatever lawful purpose you wish.
</div>
</div>
<div class="modal-footer">
Expand Down
8 changes: 4 additions & 4 deletions web/audio-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export class AudioHandler {
typeof AudioContext !== "undefined"
? new AudioContext()
: typeof webkitAudioContext !== "undefined"
? new webkitAudioContext()
: null;
? new webkitAudioContext()
: null;
if (this.audioContext) {
this.audioContext.onstatechange = () => this.checkStatus();
// TODO: try and remove the dependency on this being created first? maybe? like, why should the soundchip
Expand All @@ -34,8 +34,8 @@ export class AudioHandler {
typeof AudioContext !== "undefined"
? new AudioContext({ sampleRate: 46875 })
: typeof webkitAudioContext !== "undefined"
? new webkitAudioContext({ sampleRate: 46875 })
: null;
? new webkitAudioContext({ sampleRate: 46875 })
: null;

if (this.audioContextM5000 && this.audioContextM5000.audioWorklet) {
this.audioContextM5000.onstatechange = () => this.checkStatus();
Expand Down

0 comments on commit eac6903

Please sign in to comment.