Switch to show AAMaster Simulation without changing the code

This commit is contained in:
Luis Fernando Molina committed 2019-04-29 08:51:36 +02:00
1 parent 9df9ad1580
commit eb106f30a3
2 files changed
+20 -1

No files matched your search

+4 -1
View File
@@ -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()
+16
View File
@@ -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
}