mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
Add unsupported browser bar (fixes #17)
This commit is contained in:
parent
2656aa1501
commit
ce5306f1de
|
@ -42,12 +42,14 @@ gulp.task('inlineTemplates', ['sass'], function() {
|
|||
});
|
||||
|
||||
var JS_DEV_DEPS = [
|
||||
'lib/utils/browser-update.js',
|
||||
'node_modules/zone.js/dist/zone-microtask.js',
|
||||
'node_modules/reflect-metadata/Reflect.js',
|
||||
'node_modules/babel-polyfill/dist/polyfill.js'
|
||||
];
|
||||
|
||||
var JS_DEV_DEPS_MIN = [
|
||||
'lib/utils/browser-update.js',
|
||||
'node_modules/zone.js/dist/zone-microtask.min.js',
|
||||
'node_modules/reflect-metadata/Reflect.js',
|
||||
'node_modules/babel-polyfill/dist/polyfill.min.js'
|
||||
|
|
10
lib/utils/browser-update.js
Normal file
10
lib/utils/browser-update.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*eslint no-unused-vars: 0*/
|
||||
'use strict';
|
||||
var $buoop = { vs: {i:9, f:25, o:12.1, s:7}, c:2, test: true };
|
||||
function $buo_f(){
|
||||
var e = document.createElement('script');
|
||||
e.src = '//browser-update.org/update.min.js';
|
||||
document.body.appendChild(e);
|
||||
}
|
||||
try {document.addEventListener('DOMContentLoaded', $buo_f, false);}
|
||||
catch(e){window.attachEvent('onload', $buo_f);}
|
Loading…
Reference in New Issue
Block a user