Skip to content

Commit b596ca1

Browse files
committed
Update doc visibility
1 parent f6dbc1a commit b596ca1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ pub use class::*;
1515
pub use error::*;
1616
pub use global::*;
1717
pub use pane_handle::*;
18+
pub use utils::doc;
1819
use state::*;
1920
use storage::{ClassStorage, PaneHashMap, PaneStorage};
2021
use style::*;
21-
use utils::doc;
2222

2323
/// Mounts the div to the HTML body
2424
pub fn init() -> Result<(), DivError> {

src/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::DivError;
22

3-
pub(crate) fn doc() -> Result<web_sys::Document, DivError> {
3+
pub fn doc() -> Result<web_sys::Document, DivError> {
44
let window = web_sys::window().ok_or(DivError::MissingWindow)?;
55
window.document().ok_or(DivError::MissingDocument)
66
}

0 commit comments

Comments
 (0)