mirror of
https://github.com/UiO-Gaming/infoscreen3.git
synced 2026-11-05 13:56:52 +01:00
fixes
This commit is contained in:
1 parent
0324f28f4c
commit
72fc49f5b5
3 files changed
+16
-2
No files matched your search
@@ -119,6 +119,20 @@ class bundleClass {
|
||||
}
|
||||
}
|
||||
|
||||
getSlideData(uuid) {
|
||||
let slideData = {};
|
||||
|
||||
for (let slide of this.allSlides) {
|
||||
if (slide.uuid === uuid) {
|
||||
slideData = {
|
||||
settings: slide,
|
||||
render: fs.readFileSync("./data/bundles/" + this.name + "/slides/" + slide.uuid + ".png")
|
||||
};
|
||||
return slide;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
save() {
|
||||
this.sync();
|
||||
try {
|
||||
|
||||
@@ -279,7 +279,7 @@ function nextSlide(data) {
|
||||
}
|
||||
|
||||
function setBackground(background) {
|
||||
background = "/background/" + background;
|
||||
background = encodeURI("/background/" + background);
|
||||
if (serverOptions.isStreaming) return;
|
||||
|
||||
var video = document.getElementById("bgvid");
|
||||
|
||||
@@ -213,7 +213,7 @@
|
||||
},
|
||||
methods: {
|
||||
editBundleProperties: function (bundle) {
|
||||
window.open("/admin/edit/bundleProperties?bundle=" + bundleName, '_blank', 'width=400,height=800,scrollbars=yes,status=no,location=no');
|
||||
window.open("/admin/edit/bundleProperties?bundle=" + bundle, '_blank', 'width=400,height=800,scrollbars=yes,status=no,location=no');
|
||||
},
|
||||
editBundleSlides: function (name) {
|
||||
window.open("/admin/edit/bundleSlides?bundle=" + name, '_blank', 'width=400,height=800,scrollbars=yes,status=no,location=no');
|
||||
|
||||
Reference in new issue
Block a user