fix: posimai-sc に JWT (?token=) 受け取り、brief サブモジュールを更新

Made-with: Cursor
This commit is contained in:
posimai 2026-04-21 09:17:45 +09:00
parent b2fce817bf
commit d36b7a8fe4
2 changed files with 4 additions and 1 deletions

@ -1 +1 @@
Subproject commit 1337c280b07a76ca54b2f5438f4f4672410378d2
Subproject commit 13c76e3a9f486af19f8469fb12ab447a7757dce0

View File

@ -18,6 +18,9 @@
<meta name="robots" content="noindex, nofollow">
<script>
(function(){
var p=new URLSearchParams(location.search);
var tk=p.get('token');
if(tk){ localStorage.setItem('posimai_token',tk); p.delete('token'); history.replaceState({},'',location.pathname+(p.toString()?'?'+p.toString():'')+location.hash); }
var t=localStorage.getItem('posimai-sc-theme')||'system';
var dark=t==='dark'||(t==='system'&&matchMedia('(prefers-color-scheme:dark)').matches);
document.documentElement.setAttribute('data-theme',dark?'dark':'light');