This repository was archived by the owner on Aug 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ window.potatojw_intl = function() {
321321
322322 var welcome_html = `
323323 <div id="pjw-welcome" class="pjw-card">
324- <p>PotatoPlus 0.2.6 对初选选课进行了一些适配和改善 。</p>
324+ <p>PotatoPlus 0.2.7 对成绩查询进行了一些小改进 。</p>
325325 <p id="pjw-bulletin-content">${ store . get ( "bulletin_content" ) || "" } </p>
326326 <br>
327327 <div class="pjw-welcome-get-update">${ update_html } </div>
@@ -390,7 +390,8 @@ window.potatojw_intl = function() {
390390 ` ;
391391
392392 if ( ! store . has ( "bulletin_update_timestamp" ) || store . get ( "bulletin_update_timestamp" ) + 300000 <= new Date ( ) . getTime ( ) ) {
393- welcome_html += `<iframe src="https://cubiccm.ddns.net/apps/potatoplus-bulletin/?version=${ pjw_version } " width="300" height="300" style="display: none;"></iframe>` ;
393+ var is_sharing_stats = ( "share_stats" in store . get ( "login_settings" ) ) && ( store . get ( "login_settings" ) [ "share_stats" ] == true ) ;
394+ welcome_html += `<iframe src="https://cubiccm.ddns.net/apps/potatoplus-bulletin/?version=${ pjw_version } &share_stats=${ is_sharing_stats ? 1 : 0 } " width="300" height="300" style="display: none;"></iframe>` ;
394395
395396 window . addEventListener ( "message" , ( e ) => {
396397 if ( e . origin !== "https://cubiccm.ddns.net" ) return ;
You can’t perform that action at this time.
0 commit comments