Skip to content

Commit 6c6c9e2

Browse files
committed
fix header
1 parent d489bce commit 6c6c9e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@idrinth-api-bench/rollup-plugin-react-modular-css",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Provides a plugin to split css files out separately.",
55
"main": "src/index.js",
66
"repository": {

src/load.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default (hash: string, name: string) => {
22
const global = window || this || {};
3-
const header = global.document.getElementsByTagName('header')[0];
3+
const header = global.document.getElementsByTagName('head')[0];
44
const path = `/assets/${name}-${hash}.min.css`;
55
if (global.document.querySelector(`link[href='${ path }']`)) {
66
return;

0 commit comments

Comments
 (0)