vatts 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -187,7 +187,14 @@ function App({ componentMap, routes, initialComponentPath, initialParams, layout
|
|
|
187
187
|
setCurrentPageComponent(() => componentMap[match.componentPath]);
|
|
188
188
|
setParams(match.params);
|
|
189
189
|
if (match.metadata && match.metadata?.title != null) {
|
|
190
|
-
|
|
190
|
+
try {
|
|
191
|
+
// Corrige o encoding quebrado pelo atob (converte Frazão -> Frazão)
|
|
192
|
+
window.document.title = decodeURIComponent(escape(match.metadata.title));
|
|
193
|
+
}
|
|
194
|
+
catch (e) {
|
|
195
|
+
// Fallback seguro caso a string já venha normalizada por algum motivo
|
|
196
|
+
window.document.title = match.metadata.title;
|
|
197
|
+
}
|
|
191
198
|
}
|
|
192
199
|
}
|
|
193
200
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vatts",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Vatts.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "mfraz",
|