Merge pull request #378 from marcjansen/examples-file-protocol
Add fallback host when examples are accessed through file:-protocol.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user