mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Script: removed a few opts::get()
This commit is contained in:
parent
57205318c5
commit
42569280e2
17 changed files with 238 additions and 45 deletions
|
@ -38,7 +38,6 @@ use net_traits::request::{
|
|||
use net_traits::{FetchMetadata, FetchResponseListener, Metadata, NetworkError};
|
||||
use net_traits::{ResourceFetchTiming, ResourceTimingType};
|
||||
use servo_atoms::Atom;
|
||||
use servo_config::opts;
|
||||
use servo_url::ServoUrl;
|
||||
use std::cell::Cell;
|
||||
use std::fs::File;
|
||||
|
@ -533,7 +532,7 @@ impl HTMLScriptElement {
|
|||
}
|
||||
|
||||
fn unminify_js(&self, script: &mut ClassicScript) {
|
||||
if !opts::get().unminify_js {
|
||||
if !self.parser_document.window().unminify_js() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue