simonw/datasette

sql-formatter javascript is not now working with CloudFlare rocketloader

开放

#1,969 创建于 2022年12月23日

 (0 条评论) (0 个反应) (0 位负责人)Python (625 个派生)batch import
bughelp wantedjavascript

仓库指标

星标
 (8,637 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

This is probably not a bug with datasette, but I thought you might want to know, @simonw.

I noticed today that my CloudFlare proxied datasette instance lost the "Format SQL" option. I'm pretty sure it was there last week.

In the CloudFlare settings, if I turn off Rocket Loader, I get the "Format SQL" option back.

Rocket Loader works by asynchronously loading the javascript, so maybe there was a recent change that doesn't play well with the asynch loading?

I'm up to date with https://github.com/simonw/datasette/commit/e03aed00026cc2e59c09ca41f69a247e1a85cc89

贡献者指南