Switch to show AAMaster Simulation without changing the code
This commit is contained in:
1 parent
9df9ad1580
commit
eb106f30a3
2 files changed
+20
-1
No files matched your search
@@ -82,7 +82,10 @@
|
||||
if (bot.products !== undefined) {
|
||||
for (let k = 0; k < bot.products.length; k++) {
|
||||
let product = bot.products[k]
|
||||
if (product.shareWith !== 'Public' && devTeam.codeName !== userTeam.slug) { continue }
|
||||
|
||||
if (window.localStorage.getItem('Show AAMaster Layers') === null) {
|
||||
if (product.shareWith !== 'Public' && devTeam.codeName !== userTeam.slug) { continue }
|
||||
}
|
||||
/* Now we create Product objects */
|
||||
|
||||
let productCard = newProductCard()
|
||||
|
||||
@@ -153,3 +153,19 @@ function removeTime (datetime) {
|
||||
|
||||
return dateOnly
|
||||
}
|
||||
|
||||
function loadEmoji (pPath) {
|
||||
let newImage
|
||||
|
||||
newImage = new Image()
|
||||
newImage.onload = onImageLoaded
|
||||
|
||||
function onImageLoaded () {
|
||||
newImage.isLoaded = true
|
||||
}
|
||||
|
||||
newImage.src = window.canvasApp.urlPrefix + 'Images/Emoji/' + pPath
|
||||
|
||||
return newImage
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user