Icon.createFromIconfontCN方法会强制添加https: #12316
Labels
good first issue
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
Version
3.9.2
Steps to reproduce
import { Icon } from 'antd';
let scriptUrl =
./icon/iconfont.js
;if (DEV) {
scriptUrl = '//at.alicdn.com/t/font_810467_0vb7rjfqkwzk.js';
}
export default Icon.createFromIconfontCN({
scriptUrl
});
What is expected?
可根据传入的scriptUrl判断自适应http或者https,
这样就可使用下载到本地或者其他cnd中无https服务的 iconfont.cn 项目
What is actually happening?
不管scriptUrl的值传什么都会添加https:
The text was updated successfully, but these errors were encountered: