Skip to content

Commit

Permalink
fix(wepy-web): fix style inject sort (#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlhandsome authored and Gcaufy committed Jul 29, 2018
1 parent 1d33930 commit 2451de1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/wepy-web/src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import {camelize, hyphenate} from './helper/word';
const pageEvent = ['onLoad', 'onReady', 'onShow', 'onHide', 'onUnload', 'onPullDownRefresh', 'onReachBottom', 'onShareAppMessage'];

const addStyle = (stylelist) => {
// fix style inject sort, https://github.com/Tencent/wepy/issues/1645
stylelist = stylelist.reverse()

let styleElement = document.createElement('style');
let head = document.head || document.getElementsByTagName('head')[0];

Expand Down

0 comments on commit 2451de1

Please sign in to comment.