Skip to content

Commit

Permalink
fix invalid selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanbarlog committed Oct 17, 2017
1 parent 3f21f4e commit 2d402e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Handler/ReplaceJavaScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(RenderBlock $renderBlock, string $persistentClass)

public function handle(Handler $ajax, string $view, array $parameters = []): Handler
{
$ajax->container(sprintf('script:not(.%s, [nonce])', $this->persistentClass))->remove();
$ajax->container(sprintf('script:not(.%s):not([nonce])', $this->persistentClass))->remove();

try {
$javaScripts = $this->renderBlock->render($view, 'javascripts', $parameters);
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/ReplaceStyleSheets.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(RenderBlock $renderBlock, string $persistentClass)

public function handle(Handler $ajax, string $view, array $parameters = []): Handler
{
$ajax->container(sprintf('style:not(.%s, [nonce])', $this->persistentClass))->remove();
$ajax->container(sprintf('style:not(.%s):not([nonce])', $this->persistentClass))->remove();

try {
$styleSheets = $this->renderBlock->render($view, 'stylesheets', $parameters);
Expand Down

0 comments on commit 2d402e7

Please sign in to comment.