Skip to content

Commit

Permalink
Update VuetifyWebPage.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane authored Nov 26, 2023
1 parent 526280f commit 31666b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/vuetifyCore/VuetifyWebPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ public function __construct() {
$p->addBeforeRender(function (VuetifyWebPage $p2) {
$jsCode = new HTMLNode('script', [
'id' => 'server-json-data',
'nonce' => hash('sha256', microtime().'-'.random_bytes(10))
'nonce' => str_replace('=','',base64_encode(hash('sha256', microtime().'-'. random_bytes(10))))
]);
$jsCode->text('data = '.$p2->getJson(), false);
$p2->getDocument()->getHeadNode()->addChild($jsCode);
});
},100);
}, 100);
$this->jsonData = new Json();
}
Expand Down

0 comments on commit 31666b0

Please sign in to comment.