Merge pull request #378 from marcjansen/examples-file-protocol

Add fallback host when examples are accessed through file:-protocol.
This commit is contained in:
Marc Jansen
2013-03-15 03:50:48 -07:00

View File

@@ -23,6 +23,9 @@
mode: 'ADVANCED',
id: 'ol'
};
if (window.location.protocol === 'file:' && !params.hostname) {
params.hostname = 'localhost';
}
var chunks, search, pair;
var src, index, id, i;