mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
fix(IE8): fix for IE8 error on using isUndefined function
Using isUndefined on console object in IE8 will throw an error. This reverts to using `typeof console === 'undefined'. Closes #280
This commit is contained in:
parent
b1c458a762
commit
561dc5f155
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.js.map
vendored
BIN
dist/showdown.js.map
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js.map
vendored
BIN
dist/showdown.min.js.map
vendored
Binary file not shown.
|
@ -254,7 +254,8 @@ showdown.helper.replaceRecursiveRegExp = function (str, replacement, left, right
|
|||
/**
|
||||
* POLYFILLS
|
||||
*/
|
||||
if (showdown.helper.isUndefined(console)) {
|
||||
// use this instead of builtin is undefined for IE8 compatibility
|
||||
if (typeof(console) === 'undefined') {
|
||||
console = {
|
||||
warn: function (msg) {
|
||||
'use strict';
|
||||
|
|
Loading…
Reference in New Issue
Block a user