elements
- const table = document.querySelector('table.tt-table');
- if (!table || !table.querySelectorAll('tr').length > 2) {
- // localStorage.removeItem(`tt-table-${vm.config.key}`);
- // window.location.reload();
- }
- }
-}
\ No newline at end of file
+// Vue.config.errorHandler = function (err, vm, info) {
+// // still log errors to the console
+// console.error(info, err, vm);
+//
+// if (typeof vm.config.key === 'string') {
+// // check if document.querySelector table.tt-table exists aswell if it has atleast 3
elements
+// const table = document.querySelector('table.tt-table');
+// if (!table || !table.querySelectorAll('tr').length > 2) {
+// // localStorage.removeItem(`tt-table-${vm.config.key}`);
+// // window.location.reload();
+// }
+// }
+// }
\ No newline at end of file