Skip to content

Commit 4c82605

Browse files
committed
Fix for #35 (pretty-checkbox libraty was not found for bundled CSS)
1 parent 743f52a commit 4c82605

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/pretty-checkbox.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ function init(Survey) {
1717
name: "pretty-checkbox",
1818
activatedBy: "property",
1919
widgetIsLoaded: function() {
20-
for (var i = 0; i < document.styleSheets.length; i++) {
21-
var href = document.styleSheets[i].ownerNode["href"];
22-
if (!!href && href.indexOf("pretty-checkbox") != -1) {
23-
return true;
24-
}
25-
}
26-
return false;
20+
return true;
2721
},
2822
htmlTemplate: "<fieldset></fieldset>",
2923
isFit: function(question) {

0 commit comments

Comments
 (0)