Skip to content

Commit

Permalink
Fix Display on Room Options (#16)
Browse files Browse the repository at this point in the history
* Fix Display on Room Options

* Update Icon
  • Loading branch information
smashedr authored Apr 27, 2024
1 parent 8b36e7e commit 65b9c3f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "PlayDrift Web Extension.",
"homepage_url": "https://github.com/cssnr/playdrift-extension",
"author": "Shane",
"version": "0.4.5",
"version": "0.4.6",
"manifest_version": 3,
"commands": {
"_execute_action": {
Expand Down
2 changes: 1 addition & 1 deletion src/html/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>PlayDrift Extension Home</h1>
<p class="lead">This is under active development and currently in Beta! The extension may not function as expected!</p>
<div class="mb-2">
<a class="btn btn-outline-success me-2" role="button" href="https://dominoes.playdrift.com/" rel="noopener" data-tabopen="*://*.playdrift.com/*">
<i class="fa-solid fa-dice-six me-1"></i> Play Dominoes</a>
<i class="fa-solid fa-lines-leaning me-1"></i> Play Dominoes</a>
<a class="btn btn-outline-info me-2" role="button" href="../html/options.html" data-tabopen>
<i class="fa-solid fa-sliders me-1"></i> Options Page</a>
<a class="btn btn-outline-secondary me-2" role="button" href="https://github.com/cssnr/playdrift-extension" rel="noopener" data-tabopen>
Expand Down
2 changes: 1 addition & 1 deletion src/html/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h2 class="text-center mb-0">
<div class="row mb-2 g-1">
<div class="col-6">
<a class="btn btn-outline-success btn-sm w-100" role="button" href="https://dominoes.playdrift.com/" data-tabopen="*://*.playdrift.com/*">
<i class="fa-solid fa-dice-six me-1"></i> Play</a>
<i class="fa-solid fa-lines-leaning me-1"></i> Play</a>
</div>
<div class="col-6">
<a class="btn btn-outline-primary btn-sm w-100" role="button" href="../html/home.html" data-tabopen>
Expand Down
5 changes: 3 additions & 2 deletions src/js/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,11 @@ async function processRoom(room) {
if (options.addCancelReadyBtn) {
await addCancelReadyBtn()
}
addKickedPlayers(parent)
if (options.showRoomOptions) {
updateRoomOptions(options)
// updateRoomOptions(options)
setTimeout(updateRoomOptions, 250, options)
}
addKickedPlayers(parent)

const aside = document.querySelector('aside')
console.debug('aside:', aside)
Expand Down

0 comments on commit 65b9c3f

Please sign in to comment.