Skip to content

Commit

Permalink
feat: adds constant to switch on/off network based optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Mar 22, 2019
1 parent 239442f commit 1accde5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public function inline_bootstrap_script() {
w.optimoleData = {
backgroundReplaceClasses: [%s],
watchClasses: [%s],
network_optimizations: %s,
quality: %d
}
Expand All @@ -101,6 +102,7 @@ public function inline_bootstrap_script() {
$min,
$bgclasses,
$watcher_classes,
defined( 'OPTML_CUSTOM_DOMAIN' ) && constant( 'OPTML_CUSTOM_DOMAIN' ) ? strval( OPTML_CUSTOM_DOMAIN ) : 'false',
$this->settings->get_numeric_quality()
);
echo $output;
Expand Down

0 comments on commit 1accde5

Please sign in to comment.