diff --git a/fhem/contrib/DS_Starter/widget_smaportalspg.js b/fhem/contrib/DS_Starter/widget_smaportalspg.js
index 1285a4ea8..e5df5fd5d 100644
--- a/fhem/contrib/DS_Starter/widget_smaportalspg.js
+++ b/fhem/contrib/DS_Starter/widget_smaportalspg.js
@@ -14,10 +14,28 @@
*
*/
+/* Versionen:
+ *
+ * 1.0.0 02.07.2019 initial version
+*/
+
/* global ftui:true, Modul_widget:true */
"use strict";
+function depends_smaportalspg (){
+ var deps = [];
+
+ var userCSS = $('head').find("[href$='css/fhem-tablet-ui.css']");
+
+ if (userCSS.length)
+ userCSS.before('')
+ else
+ $('head').append('');
+
+ return deps;
+};
+
var Modul_smaportalspg = function () {
function init_attr(elem) {
@@ -56,8 +74,6 @@ var Modul_smaportalspg = function () {
ftui.sendFhemCommand(cmd)
.done(function (data, dev) {
//console.log('received update for dynamic html : ', $(this) );
- data = ''
- + data;
elem.html(data);
});
}