Commit 1cb5d8ad authored by Thimo Kraemer's avatar Thimo Kraemer

No longer rely on rel="kinetic-stylesheet"

parent b6a826f8
/* /*
* KSS-RPC v0.27-beta * KSS-RPC v0.28-beta
* *
* Copyright (c) 2017, joonis new media * Copyright (c) 2017, joonis new media
* Author: Thimo Kraemer <thimo.kraemer@joonis.de> * Author: Thimo Kraemer <thimo.kraemer@joonis.de>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
******************************************************************************************/ ******************************************************************************************/
var kss = { var kss = {
version: '0.27-beta', version: '0.28-beta',
_initialized: false, _initialized: false,
_ruleSheets: {}, _ruleSheets: {},
_nodeRegister: {}, _nodeRegister: {},
...@@ -144,7 +144,7 @@ kss._init = function() { ...@@ -144,7 +144,7 @@ kss._init = function() {
var count = 0; var count = 0;
kss.each(nodes, function(node) { kss.each(nodes, function(node) {
var rel = node.getAttribute('data-rel') || node.rel; var rel = node.getAttribute('data-rel') || node.rel;
if (rel == 'kinetic-stylesheet' && node.type == 'text/kss') { if (rel == 'kinetic-stylesheet' || node.type == 'text/kss') {
kss.addRuleSheet(node.href); kss.addRuleSheet(node.href);
count++; count++;
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment