(item)
| 12 | */ |
| 13 | export default class BasicPlatform extends BasePlatform { |
| 14 | acquireContext(item) { |
| 15 | // To prevent canvas fingerprinting, some add-ons undefine the getContext |
| 16 | // method, for example: https://github.com/kkapsner/CanvasBlocker |
| 17 | // https://github.com/chartjs/Chart.js/issues/2807 |
| 18 | return item && item.getContext && item.getContext('2d') || null; |
| 19 | } |
| 20 | updateConfig(config) { |
| 21 | config.options.animation = false; |
| 22 | } |
nothing calls this directly
no test coverage detected